DialogResult result;
result = fontDialog1.ShowDialog();
if (result == DialogResult.OK)
  RichTextBox1.Font = fontDialog1.Font;
