|
-
Feb 11th, 2005, 07:03 AM
#1
Thread Starter
Member
Help with Rich Text Boxes
I have a really big Rich Text Box control on my form, named rtxMain. There are several procedures in my code that write text to this text box. Here is the simplest one:
VB Code:
Private Sub WriteStuff(ByVal stuffToWrite As String)
rtxMain.Text = stuffToWrite
End Sub
And later I would call that procedure:
VB Code:
WriteStuff("Hello, World!")
My question is, how do I write rich text (bold text, italic text, colorful text, etc.) to this text box, where I only want part of the text string to have special formatting? Like, if I ONLY wanted the "World" part to be bold, and the rest normal, how would I do this?
(of course that's not really what i'm writing, that's just an example)
Last edited by Coolness; Feb 12th, 2005 at 09:52 PM.
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
|