WindowsXP themes with Framework 2.0

D

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
 
H

Herfried K. Wagner [MVP]

Dean Slindee said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top