Hi,
How do I apply 2 font styles to the text selected in a richtextbox?
Used this method to change fontstyle:
but with this method I can only apply 1 font-style (for example bold OR italic OR underlined, etc.) right? But I want to apply for example 2 front-styles, or just add the font style ( so I can add several front-styles to the selected text, for example the text is bold, and then ALSO make it underlined (with this method I can only change the font-style, only one font-style)), how do I do this?
Thanks in advanced,
Skyfe.
EDIT: fixed, sorry just had to do
for example
How do I apply 2 font styles to the text selected in a richtextbox?
Used this method to change fontstyle:
RichTextBox1.SelectionFont = New Font(RichTextBox1.SelectionFont, FontStyle.Bold)
but with this method I can only apply 1 font-style (for example bold OR italic OR underlined, etc.) right? But I want to apply for example 2 front-styles, or just add the font style ( so I can add several front-styles to the selected text, for example the text is bold, and then ALSO make it underlined (with this method I can only change the font-style, only one font-style)), how do I do this?
Thanks in advanced,
Skyfe.
EDIT: fixed, sorry just had to do
RichTextBox1.SelectionFont = New Font(RichTextBox1.SelectionFont, FontStyle.Bold + FontStyle.Italic)
for example
Last edited: