Hi everybody,
I'm searching for a way to change the font size of selected text in a RichTextBox (rtf) having different font families (e.g. Arial and MS SansSerif) and font styles (underline, bold...) using the FontDialog, but without changing the families and styles.
The following code resets all the font attributes, which is not what I want:
Dim fdNF As New FontDialog
If fdNF.ShowDialog = Windows.Forms.DialogResult.OK Then
RichTextBoxNotesDossier.SelectionFont = fdNF.Font
End If
Any idea ? Thx !
I'm searching for a way to change the font size of selected text in a RichTextBox (rtf) having different font families (e.g. Arial and MS SansSerif) and font styles (underline, bold...) using the FontDialog, but without changing the families and styles.
The following code resets all the font attributes, which is not what I want:
Dim fdNF As New FontDialog
If fdNF.ShowDialog = Windows.Forms.DialogResult.OK Then
RichTextBoxNotesDossier.SelectionFont = fdNF.Font
End If
Any idea ? Thx !