To get XP Look and Feel: - in your static Main method add a line <b>Application.EnableVisualStyles()</b> before Application.Run - then change the <b>FlatStyle</b> property for your controls to <b>System</b>. Only some controls have this. Those that do not have it will automatically support XP style.
Office 2003 look & feel - howto skin my own application?
Paul Hendley
To get XP Look and Feel:
- in your static Main method add a line <b>Application.EnableVisualStyles()</b> before Application.Run
- then change the <b>FlatStyle</b> property for your controls to <b>System</b>. Only some controls have this. Those that do not have it will automatically support XP style.
Create a manifest file like the following:
< xml version="1.0" encoding="UTF-8" standalone="yes" >
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity
version="1.0.0.0"
processorArchitecture="X86"
name="Wizard"
type="win32"
/>
<description>Your application name</description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="X86"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
</assembly>
Save it as <YourApplicationName>.exe.manifest
For example MyApp.exe.manifest
Copy the manifest file to where MyApp.exe resides and you should be able to get XP look and feel.
PS. I think there is also another way without the manifest file.
Sunny Boy