Richtextbox Control + Highlighting

J

jman3

I have a richtextbox control and I am adding several lines of text to it.

I am trying to make it so that any text that starts with "*" is bolded, and
that all other lines are kept in regular type.

However, when I try switching between bold and regular the whole RTB control
either becomes bold or regular type..how can I fix this?

thanks for your help!
 
H

Herfried K. Wagner [MVP]

* "jman3 said:
I have a richtextbox control and I am adding several lines of text to it.

I am trying to make it so that any text that starts with "*" is bolded, and
that all other lines are kept in regular type.

However, when I try switching between bold and regular the whole RTB control
either becomes bold or regular type..how can I fix this?

Have a look at the control's 'SelectionFont' property.
 

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