Re: Loosing XP style on execustion

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



"TBass" <tbj@xxxxxxxxxxxxxxxxxxx> wrote in message
news:50a72c98-8caf-4240-aed0-cc4a0a067c46@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hello,

We just upgraded from VS2003 to VS2008 Pro. One thing I noticed is
that, while editing forms in Visual Studio, they have a nice Windows
XP style (rounded buttons and frames, etc). However, once I run the
program (either inside or outside the debugger), that style is lost
and I get the typical Windows 2000 look (except for the window
border).

I'm assuming that there is a style configuration I'm supposed be
turning on or off in a config file, but I haven't seen one. Can anyone
tell me what I'm supposed to do to maintain the style?


We found it necessary to turn off VS2008's default of generating and
embedding a manifest file. The manifest it generates doesn't have a section
to declare that your program should use the v6 common controls (which
enables XP themes). Oddly, while all our (VC++) projects already had a
manifest, and some failed to build due to a duplicate resource, others
compiled and linked but ran without themes. To correct both problems, in
project properties, under Configuration Properties -> Manifest Tool -> Input
and Output, we changed Embed Manifest to No and Output Manifest File to
$(IntDir)\$(ProjectName).manifest. Also note that although you can select
multiple projects + all configurations and seemingly change all at once, we
found that most of the time this did not stick with multiple projects
selected.

Another annoyance we found was that every build (even with no changes)
results in yet another .manifest file getting regenerated, which we also
disabled at Configuration Properties -> Manifest File -> Generate Manifest.

More about our upgrade experience is here:
http://www.kinook.com/blog/?p=49

--
---------------------------------------------------
Automate your software builds with Visual Build Pro
http://www.visualbuild.com/


.



Relevant Pages

  • Re: Cant select Windows CE processor type
    ... installable option that you passed on when installing the product, ... Windows XP Pro ... Windows CE.NET Utilities v1.1 ... However, in Visual Studio .NET, if I try "Select Win CE CPU" from the ...
    (microsoft.public.windowsce.embedded)
  • Re: Will Dell OEM Vista install on another Dell PC?
    ... Even prior to Windows Genuine Advantage I did buy MS products even ... and all versions of MS Visual Studio Enterprise since ... The school that I go to gives out free copies of XP Pro, ... Server, SQL Server, and other software required for the ...
    (alt.sys.pc-clone.dell)
  • How to show dialog box on top of ALL windows?
    ... Visual Studio 2005 Pro ... Application written in C# (visual Windows app) ... Application written in Paradox ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Visual Studio 2003 cant create project
    ... In a new installation of Visual Studio 2003, under windows 2000 pro, when I ... try to create a project (even a console app) no files get created in the ...
    (microsoft.public.vsnet.setup)
  • Manifest file
    ... I recently converted a VC++ 6.0 MFC project to Visual Studio .NET 2003. ... Then I added a manifest file so that it gets Windows 2000 and XP look. ... Compiling manifest to resources... ...
    (microsoft.public.vc.mfc)