|
-
Jan 17th, 2000, 09:12 PM
#1
Thread Starter
Addicted Member
Hi
I know how to change the text colour in a rich text box, but how can I change the colour of individual lines of text when they are inserted?
e.g.
rtfOutput.Text = rtfOutput.Text & vbCrLf & "blah blah blah"
How could I make it red for instance without making the text already in the rich text box red also?
Thanks.
-
Jan 17th, 2000, 10:22 PM
#2
Use the SelText property to insert text and SelColor to select colour.
With RichTextBox1
.SelStart = Len(.Text)
.SelColor = vbRed
.SelText = vbCrLf & "here's a new line."
End With
Good luck!
------------------
Joacim Andersson
[email protected]
[email protected]
www.YellowBlazer.com
-
Jan 18th, 2000, 05:52 PM
#3
Thread Starter
Addicted Member
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
|