Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 376
Wassim AZIRAR Avatar asked Jun 24 '11 10:06

Wassim AZIRAR


1 Answers

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());
}
like image 50
Navid Rahmani Avatar answered Sep 22 '22 06:09

Navid Rahmani