private void InitializeComponent()  

  • {              
  •             //设定按字体来缩放控件  
  •             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;  
  •             //设定字体大小为12px       
  •             this.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));  
  • }  

 

相关文章:

  • 2021-12-10
  • 2022-12-23
  • 2021-12-24
  • 2022-12-23
  • 2021-05-30
  • 2022-12-23
  • 2021-12-24
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-01
相关资源
相似解决方案