That is my question...
How can i change in C# the color (and font properties if possible) without selecting the text. I hve a RichTextBox and i want that while you are writing if the program recognize a Special word, it change the color. I do this by this way:
Code Snippet
//ini = start index of the word
//fin = end index of the word
if (word == "special_word")
{
RichTextBox1.Select(ini, fin);
RichTextBox1.SelectionColor = Color.DarkBlue;
RichTextBox1.SelectionFont = new Font("Tahoma", 8, FontStyle.Bold);
RichTextBox1.Select(RichTextBox1.Text.Length, RichTextBox1.Text.Length);
}
And it works, but... When you are typing you can see the text SELECTING and DISELECTING and it is very ugly xDDD
So, are there any way to change Text properties without selecting the text ??