Hi there, I am programming a simple software where I want to change the color of specific words.
I am using richtextbox control and to change the color of the font, first I have to select the text and after change the color.
Example:
I have been reading the documentation on MSDN site, and it explains that SelectionColor will change the color of the selected text and the following text that the user writes.Code:RTB1.Select(2, 4) RTB.SelectionColor = Color.Blue
The problem is I don't know how to handle this situation because I want to change the color of a specific text only but I don't want that the color of the new words that I write after, are also of Color.Blue (usually the font color is white in all the text).
Any advices will be welcomed.




Reply With Quote
