Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / September 2004

Tip: Looking for answers? Try searching our database.

Running with XP-Style

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Opher Shachar - 02 Sep 2004 22:58 GMT
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/


Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.