471,354 Members | 1,199 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

VS 2005 control look and feel

I just upgraded one of my projects to VS 2005 and I noticed that all of my
controls such as the button and tab control do not reflect the new look that
is offered by the new VS 2005.

After playing around with it I notice that the new look is shown only on
design view and I also noticed that if I create a VS 2005 project from
scratch the controls reflect the new look during design and runtime.

Anyone knows what's going on? Thanks.

Dec 16 '05 #1
3 1307
The Main method in new projects looks like this:
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(fals e);
Application.Run(new Form1());
}

Those first 2 Application method calls were not included in the default
project template in VS2003, so they are probably not in your upgraded
Main method. Add them, and you will get the upgraded look and feel.

Joshua Flanagan
http://flimflan.com/blog
Dec 16 '05 #2
Thanks that worked!

By the way, I created a new class called "Program" and added the Main()
method there just like VS 2005 does by default. Do you know if this class
has some special meaning or if it is there just to better organize the
project information?
"Joshua Flanagan" <jo**@msnews.com> wrote in message
news:eH**************@TK2MSFTNGP10.phx.gbl...
The Main method in new projects looks like this:
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(fals e);
Application.Run(new Form1());
}

Those first 2 Application method calls were not included in the default
project template in VS2003, so they are probably not in your upgraded Main
method. Add them, and you will get the upgraded look and feel.

Joshua Flanagan
http://flimflan.com/blog

Dec 16 '05 #3
Just there for organization. The static void Main() method could be in
any class in your project.

Dec 16 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Armin Rigo | last post: by
10 posts views Thread by Dean Slindee | last post: by
3 posts views Thread by steve | last post: by
1 post views Thread by Nogusta123 | last post: by
4 posts views Thread by Goran Djuranovic | last post: by
3 posts views Thread by Allen Chen [MSFT] | last post: by
reply views Thread by XIAOLAOHU | last post: by

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.