开发者

Why do my forms look like 'Windows Classic'?

开发者 https://www.devze.com 2023-03-15 16:01 出处:网络
Is there any free tool to style my C# Windows Forms, to make them look like Windows 7 Windows. **EDIT**

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

**EDIT**

In the designer mode, I have this :

Why do my forms look like 'Windows Classic'?

But when I run I get this :

Why do my forms look like 'Windows Classic'?

I don't 开发者_Go百科know why I get that. (Old style)

Thanks


You should enable visual styles

look Application.EnableVisualStyles Method

Call this method before creating any controls

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

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号