Is there any better way to change the text color for particular sections in a Rich Text Box than to have an TextChanged event, search for that text, and use the Select method?

The problem with this is it creates a flickering effect with the scroll bar going up and down constantly and causing a lag when the user is typing if the is a lot of text.

Thanks,
Moshe

Sorry, but i don't undestand well.
Do you want to change the color only when the user select the text into RichtextBox?

I want to change the symbol "{" to the color blue if it appears in a Rich Text Box. How can this be done?

I see that: StuffSyntaxHighlighting

In the end, you can use select function in your richtextbox Object...
(E.g.: myRichTextBox.SelectionColor = Color.Blue; )
Now you make a function that select only char "{"

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.