Controls look different in Design View then in the program.

T

taurin423

I am working in Visual Studio 2005 using C#. The program I am working
on used to use the 1.1 framework, but then we upgraded to VS 2005.
I've noticed that every time we put a windows form control in (such as
textbox, checkbox, groupbox, etc) they look like standard .NET 2.0
controls. However, when we compile and run the program, all of the
controls look like .NET 1.1 controls. Is there some setting I don't
know about to control this style? How can I make them appear like 2.0
controls in the program itself, not just the designer?
 
B

Bruce Wood

I am working in Visual Studio 2005 using C#. The program I am working
on used to use the 1.1 framework, but then we upgraded to VS 2005.
I've noticed that every time we put a windows form control in (such as
textbox, checkbox, groupbox, etc) they look like standard .NET 2.0
controls. However, when we compile and run the program, all of the
controls look like .NET 1.1 controls. Is there some setting I don't
know about to control this style? How can I make them appear like 2.0
controls in the program itself, not just the designer?

See the following discussion:

http://groups.google.com/group/micr...ndowsforms/browse_frm/thread/98bdb611c7153084
 
G

Guest

In the Main() function, put the call (which is added in new 2.0 apps
automatically)
Application.EnableVisualStyles()

This will use the most up to date CommonControls library.

HTH

Ciaran O'Donnell
 

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