Microsoft Communities

Welcome to WindowsClient.net | Sign in | Join

Here are some frequently asked questions about Windows Forms and their answers.

Windows Forms FAQs

How do I use XP Themes with Windows Forms using the .NET Framework 1.1?

The .manifest file is not required if you are using .NET FrameWork 1.1. You can now use the application's EnableVisualStyles() method which should called before creating any controls. You also need to ensure that the FlatStyle property of the control is changed to System/b> instead of the default value of Standard.

static void Main() 
{ 
  Application.EnableVisualStyles(); 
  Application.Run(new Form1()); 
} 

Contributed from George Shepherd's Windows Forms FAQ



Page view counter