|
-
May 2nd, 2001, 01:53 PM
#1
colored text
How would someone make key words in text appear in a different color like in Visual Studio?
-
May 2nd, 2001, 02:03 PM
#2
Re: colored text
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]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|