改变字体和字号的WinForms应用程序 [英] Changing the font family and size for a winforms app

查看:96
本文介绍了改变字体和字号的WinForms应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

默认字体和大小WinForm的应用程序就是太小(与看起来很过时恕我直言)。

The default font family and size for Winform apps are just too small (and look so outdated IMHO).

有没有简单的方法我可以改变他们的整个应用程序?我宁愿不把它们设置在控件或窗体的基础 - 仅仅是一次性的事情,如果可能的。

Is there any easy way I could change them for the whole application? I'd prefer not to set them on a control or form basis -just a one time thing, if possible.

推荐答案

短答:没有。但是你可以解决这个。

Short answer : no. But you can workaround this.

请自己一个基本形式是空的,并将其设置的字体设置为你想要的。然后,你需要尽一切其他形式的继承了你的基地之一。

Make yourself a BaseForm that is empty and sets it's font to the one you want. Then you need to make every other form to inherits your base one.

这篇关于改变字体和字号的WinForms应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆