Upgrading .net application to 2.0 + GUI Theme

mike55

Contributor
Joined
Mar 26, 2004
Messages
727
Location
Ireland
Hi

I have upgraded a windows application to .NET Framework 2.0. When I look in the designer the GUI Theme appears correctly, however, when I run the application the GUI Theme from .NET Framework 1.1 is used.

Is there anyway I can have the 2.0 Framework used at all times?

Mike55.
 
I'd say both; for example when you view the converted windows form in the designer, buttons have that rounded effect/presentation and the default tab control has an xp type colour style. However, when I run the application, the buttons and tab control are presented as if they were still in .net framework 1.1.

Mike55.
 
Application.EnableVisualStyles works for the majority of the control. Will play around with it and see how it works out.

Mike55.

Note: Just after finding the exact solution, go to the main project and look at its properties window. Under the application tab there is a checkbox "Enable Application Framework", this needs to be checked. Once checked, this will enable the "Windows Application Framework properties" which will allow you to check the checkbox "Enable XP visual styles".

Mike55.
 
Last edited:
Back
Top