Default font for Windows Forms application

后端 未结 9 1376
有刺的猬
有刺的猬 2020-12-08 07:06

Every time that I create a new form in my application, it uses the \"Microsoft Sans Serif, 8.25pt\" font by default. I\'m not changing it because I know that in this case my

9条回答
  •  醉酒成梦
    2020-12-08 07:28

    Setting the form's Font property to SystemFonts.DialogFont doesn't work if you have group boxes with associated controls. The controls inside the group box are not affected by the form's Font property. I "solved" this by setting the Font property to SystemFonts.DialogFont for each and every group box.

提交回复
热议问题