Control appearance in VS 2005 and .net 2.0

J

Jean Paul Mertens

Hello,

After playing a while with the new VS2005 I started to convert my existing
Windows Forms projects from .NET 1.1 in VS2003 to .NET V2.0 in VS2005.
After a few days converting and warning and bug hunting I finaly had a
succesfull build op my projects and libs but great was the desolution if I
saw that my application was still using the old style op buttons, textboxes
etc.

My new projects use the nice controls but my converted one not, what am I
missing?

Greets

Jean Paul Mertens
 
J

Jeff Gaines

Hello,

After playing a while with the new VS2005 I started to convert my
existing Windows Forms projects from .NET 1.1 in VS2003 to .NET V2.0
in VS2005. After a few days converting and warning and bug hunting I
finaly had a succesfull build op my projects and libs but great was
the desolution if I saw that my application was still using the old
style op buttons, textboxes etc.

My new projects use the nice controls but my converted one not, what
am I missing?


I am currently going through the same process. What I have done is to
re-design the forms and controls in VS2005 and then copied and pasted
the code, this gives me the 'modern' look.

With Buttons you need to ensure the FlatStyle is set to 'Standard',
they seem to come across as 'System'.
 
J

Jean Paul Mertens

Hello Jeff,

Redesigning the forms is hardly an option this would take me weeks. I
suppose it has to be a simpler option.

When I find a sollution I come and post it here.

Greets

JPM
 
J

Jean Paul Mertens

Hey Jeff, and all others intrested,

I got the sollution on www.codeproject.com, and it worked fine:

Thanks to Sam

JPM

// assuming the form name is form1, look for this under "static void Main()"
// Application.Run(new Form1());// and add this above it:
// Application.EnableVisualStyles();// hope this helps

// sam kline
 

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