Formatting Text in Rich Text Box Control

P

pooba53

I have a rich textbox control and a long string of characters that I
will assign to it's .text property. How can I bold some characters and
apply italics to others?
 
R

rowe_newsgroups

I have a rich textbox control and a long string of characters that I
will assign to it's .text property. How can I bold some characters and
apply italics to others?

Look up the SelectedFont Property - you can use that to set the font
and style. You could then use regex to select the text and use that
property to bold/italicize the text.

Thanks,

Seth Rowe
 

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