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.
>
>
>