Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XP Style problem

Status
Not open for further replies.

PeteG

Programmer
Feb 23, 2001
144
GB
Hi,
I am trying to get buttons in my solution to display in 'XP style'. My PC is running Windows 2000 and I thought I could do the following:

1. Create a manifest file, a bit like this, calling it <Appname>.exe.manifest:
<?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?>
<assembly xmlns=&quot;urn:schemas-microsoft-com:asm.v1&quot; manifestVersion=&quot;1.0&quot;>
<assemblyIdentity
version=&quot;1.0.0.0&quot;
processorArchitecture=&quot;X86&quot;
name=&quot;<appName>&quot;
type=&quot;win32&quot;
/>
<description>Your app description here</description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type=&quot;win32&quot;
name=&quot;Microsoft.Windows.Common-Controls&quot;
version=&quot;6.0.0.0&quot;
processorArchitecture=&quot;X86&quot;
publicKeyToken=&quot;6595b64144ccf1df&quot;
language=&quot;*&quot;
/>
</dependentAssembly>
</dependency>
</assembly>
2. Add UxTheme.dll into my project as an embedded resource
3. Set all my button styles to 'System'.

However, I am just getting the standard button faces. This is all a bit new to me so is there something obvious that I am missing?

Thanks

Pete
 
Hi Pete,

Realise this is a bit late but thought id post just incase.

If your application has a manifest to display XP Style, and you're on Windows 2000 then it will default back to 2000 style. Has to be run on XP to achieve XP Styles.

Regards,

Matt.
 
Yes, thanks - I gave up on it after a while and then realised, via other forum subjects I'd seen, that you have to be running XP in the first place.....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top