Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21238

[VB6 - RichTextBox] - how can i syntax the lightcolor?

$
0
0
i have these code:
Code:

If IsKeyWord(s) = True Then
            RichTextBox1.SelStart = RichTextBox1.SelStart - Len(s)
            RichTextBox1.SelLength = Len(s)
            RichTextBox1.SelColor = vbBlue
            RichTextBox1.SelLength = 0
            RichTextBox1.SelColor = vbBlack
            RichTextBox1.SelStart = RichTextBox1.SelStart + Len(s) + 1
            RichTextBox1.SelColor = vbBlack
        End If

but sometimes don't works correctly:(
can anyone advice me?

Viewing all articles
Browse latest Browse all 21238

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>