<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<!-- For this file to work the version must match the executable version
EXACTLY as well as the exectuable name.
This gives slick looking mostly XP styles to the GUI. -->
<assemblyIdentity
version="1.0.0.0"
processorArchitecture="X86"
name="[NAME OF YOUR EXE HERE]"
type="win32" />
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="X86"
publicKeyToken="6595b64144ccf1df"
language="*" />
</dependentAssembly>
</dependency>
</assembly>
Sorry, I forgot to tell you. Put it in the same directory as your executable. I ussually add it to my project and change the build action to 'none' to make sure that I don't forget about it and for easier modification. You'll have to copy it to your buld directory when you upgrade the version. It just sits in the same folder as the exe.ramone said:First, where to save the manifest file or how to link it to my project?
I've always just used the manifest file but I also had to set some stuff FlatStyle properties to system (like buttons) to make it all look good. I have never called enablevisualstyles() to get these effects, so it that seems to be just a different (and more buggy apparently) way of doing things.Wile said:I thought that if you added the manifest file, you didn't need to do the enablevisualstyles() in code anymore??
Pro strat, man. Thanks for the advice. I will start using that immediately.marble_eater said:I recommend you set the build action to "Content".
Beware: Opening and saving a .EXE with Visual Studio will mess up any ARGB icons (you lose the alpha data and instead get a jaggy masked image). I am not sure whether this affects ARGB PNGs. I don't know if this is a bug or because the .Net image editor doesn't support 32-bit ARGB images, but for this reason I prefer EnableVisualStyles() over embedding a manifest. I'm big on pretty icons.MSDN said:To add the manifest as a resource
In the Visual Studio development environment, on the File menu, point to Open, then click File.
Navigate to the directory containing this Visual Studio solution. This is the directory you saved it in during Step 1 of the "Create the Project" section.
Open the obj directory and then the Debug or Release directory (depending on the build option you set in the development environment).
Locate the executable file (it will be in the form of ProjectName.exe) and double-click it to open it with the Visual Studio environment.
Right-click the executable file in the designer and choose Add Resource.
In the Add Resource dialog box, click the Import button.
Navigate to the manifest file you created, which should be located in the same directory as your solution.
Note Be sure that the Files Of Type field in the dialog box is set to All Files (*.*) so that you can see the manifest file in the file picker.
Double-click the manifest file.
The Custom Resource Type dialog box opens.
In the Resource Type box, type RT_MANIFEST and click OK.
In the Properties window, set the ID property to 1.
From the File menu, choose Save All to save the changes you have made.
VisualStyles is a free product, and you are welcome to redistribute it with your applicationsboth commercial and not-for-profitfree of charge (in accordance with the terms of our Free Binary License).