Farmer
Farmer

Reputation: 10983

Why do my forms look like 'Windows Classic'?

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 :

enter image description here

But when I run I get this :

enter image description here

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

Thanks

Upvotes: 21

Views: 11465

Answers (1)

Navid Rahmani
Navid Rahmani

Reputation: 7958

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());
}

Upvotes: 41

Related Questions