Making text with different color

C

Curious

Hi,

I am trying to set the text color in a textbox with different
colors(Line1 color blue, line2 green, etc). If I'm correct, this is
not possible in the textbox control.

Is this possible to do in the richtext box control? How?

Can someone help me out.
Thanks in advance
 
J

justin.creasy

You can use the SelectionColor attribute with a RichTextBox to set the
color. It's a little tricky getting it to work. You need to do some
stuff with SelectedText along with SelectionColor. It is possible, it's
just been awhile since I did it. Hope that helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top