|
-
Sep 4th, 2007, 01:10 PM
#1
Thread Starter
Addicted Member
[RESOLVED] RichTextBox:Underline text
Dear All,
I am using a RichTextBox. How can I make the text underline?
-
Sep 4th, 2007, 02:25 PM
#2
Junior Member
Re: RichTextBox:Underline text
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);
-
Sep 4th, 2007, 03:02 PM
#3
Re: RichTextBox:Underline text
or
Code:
myrtb.Font.Underline = true;
or
Code:
myrtb.SelectionFont.Underline = true;
-
Sep 4th, 2007, 03:24 PM
#4
Re: RichTextBox:Underline text
@pen - both of those are readonly properties.
-
Sep 4th, 2007, 03:25 PM
#5
Re: RichTextBox:Underline text
-
Sep 4th, 2007, 04:33 PM
#6
Junior Member
Re: RichTextBox:Underline text
 Originally Posted by sevenhalo
@pen - both of those are readonly properties.
Yep, you have to use my method.
-
Sep 5th, 2007, 03:50 AM
#7
Thread Starter
Addicted Member
Re: RichTextBox:Underline text
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|