I am programming in VS2010 and I am using C#.
On my dialog-form I have a Button, editbox(readonly) and
A user can press the button and the FontDialog-window
appears the user can then set his fontname, size etc...
After closting the fontdialog-window, the choosen Font-
Name and size appears in the editbox.
private void btnFontType_Click(object sender, EventArgs e)
if (fontDialog1.ShowDialog() == DialogResult.OK)
txtFont.Text = Convert.ToInt32(this.fontDialog1.Font.SizeInPoints).ToString() + " pt. " +
What I would like is to create a button called Default, that sets the fontdialog to
the default fontname: Microsoft Sans Serif and default fontsize: 8.
How can I do that?