为什么我的形式看起来像“Windows经典”?我的、形式、经典、Windows

2023-09-03 04:47:35 作者:女汉子称霸天下

有没有免费的工具,风格我的C#Windows窗体,使它们看起来像Windows 7的Windows。

Is there any free tool to style my C# Windows Forms, to make them look like Windows 7 Windows.

**编辑**

在设计模式,我有这样的:

In the designer mode, I have this :

但是,当我跑我得到这样的:

But when I run I get this :

我不知道为什么,我明白了。 (老款)

I don't know why I get that. (Old style)

感谢

推荐答案

您应该启用视觉样式

看Application.EnableVisualStyles方法

在创建任何控件之前调用此方法

Call this method before creating any controls

[STAThread]
static void Main() 
{
    Application.EnableVisualStyles();
    Application.Run(new YourMainForm());
}