Formatting Text in Rich Text Box Control

  • Thread starter Thread starter pooba53
  • Start date Start date
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?
 
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
 
Back
Top