Why do my forms look like 'Windows Classic'?

前端 未结 1 1825
梦毁少年i
梦毁少年i 2021-01-07 22:19

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 :

1条回答
  •  感动是毒
    2021-01-07 22:31

    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 讨论(0)
提交回复
热议问题