"Adam Honek" <Ad*******@Webmaster2001.freeserve.co.uk> schrieb:
I have a rich textbox on my form and I want the user to be able
to select the font properties via the font dialog box.
1) How do I bring up the font dialog box in the code?
2) How do I make the settings on it affect the rich textbox in question?
Add a richtextbox and a fontdialog component to your form, then place the
code below in a button's 'Click' event handler:
\\\
If Me.FontDialog1.ShowDialog() = DialogResult.OK Then
Me.RichTextBox1.SelectionFont = Me.FontDialog1.Font
End If
///
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>