How would someone make key words in text appear in a different color like in Visual Studio?
Printable View
How would someone make key words in text appear in a different color like in Visual Studio?
What text are you talking about.
Here the code for RTF control.
private Sub Command1_Click()
RTB1.Text = "bla-bal word bla-bal"
RTB1.SelStart = InStr(RTB1.Text, "word") - 1
RTB1.SelLength = len("word")
RTB1.SelColor = vbRed
RTB1.SelLength = 0
End Sub
Iouri Boutchkine
[email protected]