Home All Groups Group Topic Archive Search About

WindowsXP themes with Framework 2.0

Author
22 Jan 2006 2:50 PM
Dean Slindee
Would like to use WindowsXP graphics themes (like shaded tab page in tab
control), but am using Windows 2000 operating system.  Using Visual Studio
2005 and .Net Framwork 2.0.  Have the option "Enable XP visual styles"
checked in the Project's Application tab.
Following code was placed in the frmMain_Load event, but still no XP themes.
What else
must be done?


      'use WindowsXP themes

      System.Windows.Forms.Application.EnableVisualStyles()

      System.Windows.Forms.Application.DoEvents()

Thanks,

Dean S

Author
22 Jan 2006 3:08 PM
Herfried K. Wagner [MVP]
"Dean Slindee" <slin***@charter.net> schrieb:
> Would like to use WindowsXP graphics themes (like shaded tab page in tab
> control), but am using Windows 2000 operating system.  Using Visual Studio
> 2005 and .Net Framwork 2.0.  Have the option "Enable XP visual styles"
> checked in the Project's Application tab.
> Following code was placed in the frmMain_Load event, but still no XP
> themes.

Themes will only work on Windows XP and Windows Server 2003 with visual
styles enabled.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>