Results 1 to 6 of 6

Thread: Help with Rich Text Boxes

Threaded View

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2005
    Posts
    42

    Resolved 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:
    1. Private Sub WriteStuff(ByVal stuffToWrite As String)
    2.  
    3. rtxMain.Text = stuffToWrite
    4.  
    5. End Sub

    And later I would call that procedure:

    VB Code:
    1. 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
  •  



Click Here to Expand Forum to Full Width