实现效果:

知识运用:
FontDialog组件的Font属性 //获取或设置选定的字体
public Font Font { get;set; }
实现代码:
private void button1_Click(object sender, EventArgs e)
{
fontDialog1.ShowDialog();
textBox1.Font=fontDialog1.Font;
}
浙公网安备 33010602011771号