Controls look different in Design View then in the program.

  • Thread starter Thread starter taurin423
  • Start date Start date
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?
 
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
 
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
 
Back
Top