Link to home
Start Free TrialLog in
Avatar of mj_stanton
mj_stantonFlag for Australia

asked on

How do I format the RichTextBox two combine two fontStyle (example Bold and Italic) in VB.Net 2003?

How do I format the RichTextBox two combine two fontStyle (example Bold and Italic) in VB.Net?

From research I belive in C# you can do the following but I do the following;

richTextBox1.SelectionFont =  new Font( "Tahoma", 10, System.Drawing.FontStyle.Bold |System.Drawing.FontStyle.Italic)

I have tried the following but it did not seem to work.

RichTextBox_Content.SelectionFont = New Font("Tahoma", 8, System.Drawing.FontStyle.Bold And System.Drawing.FontStyle.Italic)

Thanks in Advance

Matthew
ASKER CERTIFIED SOLUTION
Avatar of Sancler
Sancler

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mj_stanton

ASKER

Excellent, Thanks again Roger worked well