mevets
Member
I've written this:
The problem is that the selection process is ugly and obtrussive and cause trouble when its performed on TextChanged. Is there a way to highlight words in a RichTextbox without using selections? I was thinking .Chars, but had no luck.
VB.NET:
rtxtCmdSpy.SelectionStart = rtxtCmdSpy.Find("v")
Dim bfont As New Font(rtxtCmdSpy.Font, FontStyle.Bold)
rtxtCmdSpy.SelectionFont = bfont
rtxtCmdSpy.SelectionColor = Color.Green
rtxtCmdSpy.HideSelection = True
The problem is that the selection process is ugly and obtrussive and cause trouble when its performed on TextChanged. Is there a way to highlight words in a RichTextbox without using selections? I was thinking .Chars, but had no luck.