Dear All,
I am using a RichTextBox. How can I make the text underline?
Printable View
Dear All,
I am using a RichTextBox. How can I make the text underline?
By GUI design: Go to the richTextBox properties then go to 'Font' click the (...) button and it'll open up a font dialog, just select underline.
Programmatically:
Code:richTextBox1.SelectAll();
richTextBox1.SelectionFont = new Font("Microsoft Sans Serif", (float)8.25, FontStyle.Underline);
or
orCode:myrtb.Font.Underline = true;
Code:myrtb.SelectionFont.Underline = true;
@pen - both of those are readonly properties.
Well that's silly then.
Yep, you have to use my method.Quote:
Originally Posted by sevenhalo
Thanks gamesguru...