Jump to content
Xtreme .Net Talk

Recommended Posts

  • Leaders
Posted
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?
--tim
Posted

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?

UCM

>-)

  • *Gurus*
Posted

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.

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
Posted
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.
--tim

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...