Formatting text in RichTextBox

M

Mystique

Hello
Is there any way to format text with tags (something like html tags) in a
RichTextBox? Something similar to this:

string aStr;
aStr = "<b>this is bold</b> this is normal";

richTextBox1.Text = aStr;



Regards,

Mystique
 
C

Cyril Gupta

Hello,

You should be able to format content programmatically using the SelectedText property... However, if you were really willing to invest that much effort, you could potentially study the RTF format on the wotsit.org and use it to create the Tag file...

Hmm...

Why do you need this functionality?
 

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