In MSDN the topic "Add the Manifest to the Executable File"
under "Using Windows XP Visual Styles With Controls on Windows Forms"
explains how to add the manifest resource to the executable after it's been
built.
So after a subsequent rebuild the proccess (of adding the resource) must be
repeated.
Is there a way the VS.NET 2003 IDE can do this automatically?
Thanks,
Opher.
Joerg Jooss - 02 Sep 2004 22:19 GMT
> In MSDN the topic "Add the Manifest to the Executable File"
> under "Using Windows XP Visual Styles With Controls on Windows Forms"
[quoted text clipped - 3 lines]
> must be repeated.
> Is there a way the VS.NET 2003 IDE can do this automatically?
No. There's a new API in .NET 1.1 though that enables visual styles without
a manifest file -- Application.EnableVisualStyles() -- but it is rather
prone to breaking.
Cheers,

Signature
Joerg Jooss
joerg.jooss@gmx.net
Imran Koradia - 02 Sep 2004 22:19 GMT
You don't need a manifest file in VS 2003 - this was only required in VS
2002. You can use Application.EnableVisualStyles to enable Windows XP style
control appearance. Note that Application.EnableVisualStyles must be called
before any of the controls are created. So, you'll need to add it to the
code generated by the designer - after the call to MyBase.New(). If you are
using a Sub Main, then make this the first line in the procedure. Also, set
the FlatStyle property of the controls to 'System' for this to take effect.
Sometimes, you might need to add Application.DoEvents after
Application.EnableVisualStyles - I've not had to do that but if justadding
Application.EnableVisualStyles alone does not work, you might want to try
that as well.
hope this helps..
Imran.
> In MSDN the topic "Add the Manifest to the Executable File"
> under "Using Windows XP Visual Styles With Controls on Windows Forms"
[quoted text clipped - 6 lines]
> Thanks,
> Opher.
Herfried K. Wagner [MVP] - 02 Sep 2004 23:36 GMT
* "Opher Shachar" <opher@ladpc.co.il> scripsit:
> In MSDN the topic "Add the Manifest to the Executable File"
> under "Using Windows XP Visual Styles With Controls on Windows Forms"
> explains how to add the manifest resource to the executable after it's been
> built.
<URL:http://groups.google.de/groups?selm=egiUM1CkEHA.3944%40tk2msftngp13.phx.gbl>

Signature
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/