Hello i want to make that when i write the color "print" it change color but i made a little code that change it BUT if i use print command in my richtextbox more that 1 time other print text dont change the color
i write an:
print test < Recolor
print test < DONT RECOLOR
Code:
If InStr(RichTextBox1.Text, "print") Then
RichTextBox1.Find("print")
RichTextBox1.SelectionColor = Color.Orange
RichTextBox1.DeselectAll()
end if
RichTextBox1.Select(RichTextBox1.Text.Length, RichTextBox1.Text.Length)
RichTextBox1.SelectionColor = Color.Blackprint test < Recolor
print test < DONT RECOLOR