RichTextbox colors w/o using a Selection

mevets

Member
Joined
Jun 22, 2006
Messages
17
Location
Northern, VA
Programming Experience
Beginner
I've written this:
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.
 
Back
Top