VS 2005 control look and feel

R

Rene

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.
 
J

Joshua Flanagan

The Main method in new projects looks like this:
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
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
 
R

Rene

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?
 
T

tdavisjr

Just there for organization. The static void Main() method could be in
any class in your project.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top