How to use XP Themes with Windows Forms using the .NET?

Posted by vishalneeraj-24503 under Windows Forms category on | Points: 40 | Views : 1934
Hi,we can get Windowx XP themes through our Dot Net application.

To get Windows XP themes,we need to install Windows XP on our machine and the theme should be set to XP.We also need to ensure that the FlatStyle property of the control is changed to System and then add following line of code in your Main() method

static void Main() 
Application. Run(new Form1());

Where EnableVisualStyles method Enables visual styles for the application.
Visual styles are the Colors,Fonts,and Other visual elements that form an operating system themes.

Comments or Responses

Login to post response