I've got this code running in the RichTextBox control:
If RichTextBox1.Text.Contains("if") Then
RichTextBox1.Select(RichTextBox1.Find("print"), 5)
RichTextBox1.SelectionColor = Color.Blue
RichTextBox1.DeselectAll()
It changes the color of if, but italways keeps selecting it, and taking the cursor to the first index of the richtextbox. Any idea of how to fix this or do what I want to do?

New Topic/Question
Reply



MultiQuote


|