实现效果:

  使用FontDialog组件设置字体

知识运用:

  FontDialog组件的Font属性    //获取或设置选定的字体

  public Font Font  { get;set; }

实现代码:

        private void button1_Click(object sender, EventArgs e)
        {
            fontDialog1.ShowDialog();
                textBox1.Font=fontDialog1.Font;
        }

 

相关文章:

  • 2021-12-27
  • 2021-08-01
  • 2021-03-31
  • 2021-05-28
  • 2022-12-23
  • 2022-01-22
  • 2022-01-07
猜你喜欢
  • 2022-12-23
  • 2021-07-11
  • 2022-12-23
  • 2022-12-23
  • 2022-02-12
  • 2022-12-23
  • 2021-08-31
相关资源
相似解决方案