如何更改窗口表单标题的字体大小和字体系列? [英] How to change window form title font size and font family?
问题描述
我有一个具有窗口形式的窗口应用程序.我必须更改此窗口表单标题文本(字体大小和字体系列等).我无法做到这一点.我附上一张图片,以便更好地理解.
I have a window application that has a window form. I have to change this window form header text (Font Size and Font family etc). I am unable to do this. I am attaching an image for better understanding.
推荐答案
您可以通过自定义CodePlex上的Border Form 项目.
当前有三种皮肤可用:Longhorn,Vista和WMP.网站上也有一些演示用法.
There are currently three skins available: Longhorn, Vista, and WMP. There are some demo usages as well on the site.
或者,在CodeProject上也有 WinForms SkinFramework .
Alternatively there is also WinForms SkinFramework available on CodeProject.
问题在于WinForms是围绕本机Windows UI元素的托管包装.因此,字体和其他样式最终是通过操作系统主题(在本例中为Aero)控制的.
The problem lies in the fact that WinForms is a managed wrapper around the native Windows UI elements. So the font and other styling is ultimately controlled via the Operating System theme (Aero in this case).
这篇关于如何更改窗口表单标题的字体大小和字体系列?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!