Enabling Windows XP Themes with Windows Forms, When Using the .NET FrameWork 1.1

Add:
    Application.EnableVisualStyles();
    Application.DoEvents();
before the
    Application.Run(new Form1());
Line.
No need for a Manifest File like in .NET FrameWork 1.0.

Then, Set Controls .FlatStyle Property to "System", instead of "Standard".

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish