Click to See Complete Forum and Search --> : Color in RichTextBox


rockies1
June 13th, 2001, 09:49 AM
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!

dfwade
June 13th, 2001, 10:38 AM
a good place to start with RTF Codes is the help file look in the index for
RTF files, changing attributes in RichTextBox control