Tim Huffam

Dotting the I and crossing the T of I.T.

  Home  |   Contact  |   Syndication    |   Login
  153 Posts | 0 Stories | 2747 Comments | 653 Trackbacks

News

Archives

Post Categories

Interesting Blogs/Links

Ever wondered why your winforms app looks good (ie shows Windows XP type styling) in the Visual Studio designer (VS2005) yet when you run it, it looks very Windows 2000 (not very colorful and no rounded corners)?

That's because by the XP styling is turned off by default.  To enable it, include the following line in your form's constructor:

    System.Windows.Forms.Application.EnableVisualStyles();

Simple when you know huh.

HTH

Tim

posted on Monday, November 20, 2006 1:41 PM

Feedback

# re: Enabling XP visual styles in your .NET winforms app. 8/16/2007 5:25 AM Ashik Iqbal
It does not worked.

# re: Enabling XP visual styles in your .NET winforms app. 6/20/2012 8:06 AM Paul Mortlock
Is this relevant anymore? I mean does it apply to .Net 1.0 only?

Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification: