VS 2005 control look and feel

  • Thread starter Thread starter Rene
  • Start date Start date
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.
 
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
 
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?
 
Just there for organization. The static void Main() method could be in
any class in your project.
 
Back
Top