VS 2003 to VS 2005

G

Guest

Hey, I've got a few apps written in Visual Studio 2003 .NET that I've
converted to Visual Studio 2005. I noticed that when I do the conversion, the
old style of windows controls such as buttons and progress bars are not
converted to the new style. How do I convert them to have the new look and
feel? Thanks.
 
L

Leon Friesema

Hey, I've got a few apps written in Visual Studio 2003 .NET that I've
converted to Visual Studio 2005. I noticed that when I do the conversion, the
old style of windows controls such as buttons and progress bars are not
converted to the new style. How do I convert them to have the new look and
feel? Thanks.

In your 'static Main' (program entry-point) start like this:

[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);

That should do the trick.

greetz,
Leon
 

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