Color in rich tekst box

  • Thread starter Thread starter whaletyr
  • Start date Start date
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
 
* "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.
 
Back
Top