CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 1999
    Location
    Blue Springs, MO
    Posts
    43

    Color in RichTextBox

    I have never used a RichTextBox before, so I am struggling.

    What I'm trying to do is colorize a string.

    My string looks like this:

    ^1Hello All, ^2How are you^3?

    The ^ followed by a number indicates the color change.

    1 = red, 2 = blue, 3 = green

    My string should then look like:
    Hello All, in red
    How are you in blue
    ? in green all concatenated together...

    Anyone know how to go about doing this?

    Thanks!



  2. #2
    Join Date
    Aug 2000
    Location
    KY
    Posts
    766

    Re: Color in RichTextBox

    a good place to start with RTF Codes is the help file look in the index for
    RTF files, changing attributes in RichTextBox control


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

Featured