Good night,
I would like to know how can I highlight a part of the text contained in a TextBox, Label (preferably) or RichTextBox. For example, given the string
“This is a test.”,
I would like the control to show “This is a test.”. Is there any easy way I can do it?
Thank you very much.
Something to that effect will work and remove the selection.
EDIT
It should be relatively easy to encapsulate in your own method. You could even make an extension:
and then use it like: