Color in rich tekst box

W

whaletyr

I created a rich tekst box in vb

I need to write some data into a rich tekst box and I willput a standard
line of tekst in there and the variable. but I want the variable in another
color. eg red inb stead of black like the standard teksts line
How can I do that
 
H

Herfried K. Wagner [MVP]

* "whaletyr said:
I created a rich tekst box in vb

I need to write some data into a rich tekst box and I willput a standard
line of tekst in there and the variable. but I want the variable in another
color. eg red inb stead of black like the standard teksts line
How can I do that

For very /simple/ formats, you can use the control's overloaded 'Select'
method to select a portion of text and then set the control's
'SelectionColor' property to the desired color.
 

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