Color in rich tekst box

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • whaletyr

    Color in rich tekst box

    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


  • Herfried K. Wagner [MVP]

    #2
    Re: Color in rich tekst box

    * "whaletyr" <whaletyr@wanad oo.nl> scripsit:[color=blue]
    > 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[/color]

    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.

    --
    Herfried K. Wagner [MVP]
    <URL:http://dotnet.mvps.org/>

    Comment

    Working...