473,324 Members | 2,268 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Upgrade of Windows app from VS 2003 to VS 2005

Hi

Can anyone help me with a project upgrade issue?:

If you creeate a C# Windows application in VS 2003, then by default
the forms do not have the XP look common controls. To get them, you
have to specify version 6.0.0.0 of Microsoft.Windows.Common-Controls
as a depency in a manifest file for the exe.

If you create a similar C# Windows app in VS2005, then by default the
forms do have the XP look common controls. That's how VS 2005 works -
I assume it's because it uses .net 2.0 rather than 1.1, or is
automatically emebedding a manifest in the executable.

Now, if you upgrade your VS2003 project in VS2005, and build it, the
same behaviour remains. Even though it is now being built against .net
2.0, the old style common controls are used unless you create
a .manifest file. I can't see any settings to alter this behaviour to
get the upgraded project to behave like the project created in VS2005.

Anybody have any ideas how to do that?

David Topham

Jul 26 '07 #1
2 1341
static void Main() {
// add these two!
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(fals e);
// ... your app
}

Marc

Jul 26 '07 #2
On 26 Jul, 15:52, Marc Gravell <marc.grav...@gmail.comwrote:
static void Main() {
// add these two!
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(fals e);
// ... your app
}

Marc
Yes, that does it. Kind of obvious when you know how. I'd looked at
project properties, form properties, assembly properties, etc. Just
not the actual code.

Thanks.

Jul 27 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: DaVBGuy | last post by:
I'm currently using VB 6 for windows based apps. Should I make the jump to VS.2003 now, or should I wait till (the final) VS.2005 release comes out later this year. If I have not started...
0
by: ibeetb | last post by:
I already have fully working copies of Visual Studio 2003, Excel 2003 and VSTO. I have previously installed them all correctly. NOW, I want to upgrade my Visual Studio 2003 to Visual Studio 2005....
13
by: Andy | last post by:
Hi As I try to learn VB programing I've been playing around with sourcecode from projects hosted on sourceforge. If I open this code in VB 2005 (it is originally developed in VB 2003), it will...
18
by: Brett Romero | last post by:
I'm using VS.NET 2003 with Framework 1.1. I want to upgrade to VS.NET 2005 and Framework 2.0. I'd like to hear comments from people that have moved to the new platform with final releases of...
2
by: Scott R | last post by:
I have purchased the VS 2005 professional upgrade. I would like to remove VS 2003 prior to installation. If I uninstall VS 2003, how does VS 2005 know I qualify for the upgrade pricing?
1
by: =?Utf-8?B?ZGFuc3Rkb3RuZXQ=?= | last post by:
I've tried to upgrade my existing ASP.NET 2003 app to 2005 and I get a ton of errors. It compiles and runs perfect in 2003 but i get hundreds of errors in 2005. Is there an easier way to upgrade...
0
by: Nina Boss | last post by:
I'm upgrading from SQL 2000 SP4 to SQL 2005 on a 64 bit OS ( windows 2003). I've installed the new software and asked it to upgrade the default instance on the machine. The install goes well, but...
1
by: =?Utf-8?B?QU1lcmNlcg==?= | last post by:
I've upgraded from VS 2003 to VS 2005. I can run VS 2003 and VS 2005 side by side with one problem. With VS 2003, the Office XP EULA now pops up and I have to accept it or VS 2003 will shut down....
1
by: Jeremy Pavleck | last post by:
Just curious if it's possible, and supported, to upgrade SQL 2005 from 32bit to 64bit. This is on top of Windows 2003 64bit. Trying to get the proper supported config for OM2k7 without blowing...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.