Link to home
Start Free TrialLog in
Avatar of chris_nephew
chris_nephew

asked on

Using Windows XP Visual Styles With controls on Windows Form (VS 2003)

Her is my problem,

I'm trying to build a form, so user with Win XP could see with the visual styles of windows xp instead of windows 2000 and before.  I did follow the instruction of this page
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vstechart/html/vbtchUsingWindowsXPVisualStylesWithControlsOnWindowsForms.asp.

But when I try to execute the project I always receive the message : Unable to write to outfile file <executable file>.  Is there a manner to do so, and does the VS 2005 already use the visual styles of windows XP?

Thanks,

Chris
Avatar of AlexFM
AlexFM

In VS 2003 the following line is enough to add XP style support:

Application.EnableVisualStyles()
Avatar of chris_nephew

ASKER

Sorry, I have VS 2002!!!  Because I already tried this line, but it seems that enablevisualStyles is'nt a feature in the application module...
VS 2005 uses visual styles of XP in the IDE, no worry...
IF I buy the VB.NEt 2003, will I be able to set Application.EnableVisualStyles() to true and it will work?
yes, although there are some bugs in Application.EnableVisualStyles() so we use a manifest file to sepcify to use the xp styles.
see here:
http://www.hanselman.com/blog/PermaLink.aspx?guid=36187116-fbe3-4959-af04-c0c9e42479a5
So, there is no solution for my initial problem with the VS 2002??
ASKER CERTIFIED SOLUTION
Avatar of stevenbaker
stevenbaker

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
The problem is that I have the .NET framework 1.1 installed, and if I do all the steps that is described by the page mentionned in my initial question, I get the error mentionned in the initial message.  And I don't have the enableVisualStyles applicable in the application.  I don't see the enabledVisualStyles anywhere...

I'm pretty confused
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Finally, I bought VB.NET 2003 and my problem was solved, thanks for your support.