mike55 Posted November 21, 2008 Posted November 21, 2008 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. Quote A Client refers to the person who incurs the development cost. A Customer refers to the person that pays to use the product. ------ My software never has bugs. It just develops random features. (Mosabama vbforums.com)
Administrators PlausiblyDamp Posted November 21, 2008 Administrators Posted November 21, 2008 Are you refering to things like menus and toolbars or just the general look and feel? Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
mike55 Posted November 21, 2008 Author Posted November 21, 2008 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. Quote A Client refers to the person who incurs the development cost. A Customer refers to the person that pays to use the product. ------ My software never has bugs. It just develops random features. (Mosabama vbforums.com)
Administrators PlausiblyDamp Posted November 21, 2008 Administrators Posted November 21, 2008 Have you tried calling Application.EnableVisualStyles() before your main form loads? Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
mike55 Posted November 21, 2008 Author Posted November 21, 2008 (edited) 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. Edited November 21, 2008 by mike55 Quote A Client refers to the person who incurs the development cost. A Customer refers to the person that pays to use the product. ------ My software never has bugs. It just develops random features. (Mosabama vbforums.com)
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.