Leaders quwiltw Posted March 1, 2003 Leaders Posted March 1, 2003 I'm running XP professional. The problem is that I've got all my command buttons set to Flatstyle=System and they look xp-style in the designer, but when I run the application the buttons look like old regular buttons. What's wrong? Quote --tim
Winston Posted March 2, 2003 Posted March 2, 2003 are u sure u added a manifest file with your application? Quote
UCM Posted March 3, 2003 Posted March 3, 2003 I'm running xp pro as well; but every time I create a button, they come up looking like good ol reg buttons in the designer... Is there something that we have to set in the options of vb.net or vs to have xp style buttons appear? Quote UCM >-)
*Gurus* divil Posted March 3, 2003 *Gurus* Posted March 3, 2003 You need to add a manifest to your application to enable XP visual styles. There are pages in MSDN on how to do this. You can also add a manifest to the IDE itself if you want visual styles to take effect at design time, but I strongly recommend against it, since doing so actually alters your resource files to make them unreadable by most people. The next version of .NET, due out in a few weeks, is mainly a bugfix release but contains a few nifty features, one of which is Application.EnableVisualStyles, which goes around the need to add a manifest entirely. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Leaders quwiltw Posted March 3, 2003 Author Leaders Posted March 3, 2003 Thanks divil. Obviously UI development is not my strong suit, perhaps because of quirky things like this. Would have never guessed that I needed to add something to make my app look like the native style of the os. Quote --tim
*Gurus* divil Posted March 3, 2003 *Gurus* Posted March 3, 2003 It's a question of informing the OS to load a different version of the Common Controls library (version 6) than the version the program was compiled to use (version 5). Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
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.