|
-
Jan 24th, 2000, 06:15 AM
#1
Thread Starter
Lively Member
How do I change part of a RTB control's text color? For instance
<Andy> hello
<Andy> how are you?
I just want to change <Andy> to a different color on each new line?
Help please...
ande211
-
Jan 24th, 2000, 01:18 PM
#2
Hyperactive Member
Hi, there.
Put this code on CommandButton click event:
If lFound < 0 Then 'Find First
lFound = RichTextBox1.Find("Andy", 0)
RichTextBox1.SelColor = vbRed
Else
'Find Next
lFound = RichTextBox1.Find("Andy", lFound + 1)
RichTextBox1.SelColor = vbRed
End If
Larisa
[This message has been edited by LG (edited 01-25-2000).]
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
|