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?
chanmm - 09 Nov 2006 01:46 GMT
What control is that? Can you be more specific?
chanmm
>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.
[quoted text clipped - 4 lines]
> know about to control this style? How can I make them appear like 2.0
> controls in the program itself, not just the designer?
Bruce Wood - 09 Nov 2006 04:36 GMT
> 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.
[quoted text clipped - 4 lines]
> 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/microsoft.public.dotnet.framework.windowsforms/br
owse_frm/thread/98bdb611c7153084
taurin423@gmail.com - 10 Nov 2006 17:53 GMT
Very helpful, thanks Bruce.
Ciaran O''Donnell - 09 Nov 2006 09:32 GMT
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
> 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.
[quoted text clipped - 4 lines]
> know about to control this style? How can I make them appear like 2.0
> controls in the program itself, not just the designer?