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.

Re: Running with XP-Style by Imran

Imran
Thu Sep 02 16:19:46 CDT 2004

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.

"Opher Shachar" <opher@ladpc.co.il> wrote in message
news:%235b9V%23SkEHA.3148@TK2MSFTNGP10.phx.gbl...
> 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.
>
>
>



Re: Running with XP-Style by Joerg

Joerg
Thu Sep 02 16:19:36 CDT 2004

Opher Shachar wrote:
> 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?

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,

--
Joerg Jooss
joerg.jooss@gmx.net



Re: Running with XP-Style by hirf-spam-me-here

hirf-spam-me-here
Thu Sep 02 17:36:25 CDT 2004

* "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>

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