C# Forms

galaxyAbstractor

Community Advocate
Community Support
Messages
5,508
Reaction score
35
Points
48
ldlHFS.jpg
How can I get the form to have same theme as windows? Now it's using the Classic windows 95 theme instead...
 

zegnhabi

Member
Messages
44
Reaction score
2
Points
8
your issue is related to the visual style of your forms, which is resolved by enabling the visual styles in your application. just add this line in your main method.

static void Main ()
{
Application.EnableVisualStyles (); //<---- this line
Application.SetCompatibleTextRenderingDefault (false);
Application.Run (new MainForm ());
}
 

galaxyAbstractor

Community Advocate
Community Support
Messages
5,508
Reaction score
35
Points
48
your issue is related to the visual style of your forms, which is resolved by enabling the visual styles in your application. just add this line in your main method.

static void Main ()
{
Application.EnableVisualStyles (); //<---- this line
Application.SetCompatibleTextRenderingDefault (false);
Application.Run (new MainForm ());
}

Thank you very much :D. +rep for that
 
Top