Share via


Button Property to give 3D appearance

Question

Saturday, December 25, 2010 3:24 AM

I am a beginner who used to use VB5 seven years ago, but am now trying to get up to speed using Visual Basic .NET 2010 Express in XP.

A difference I have noted is that in VB5 my buttons appeared to be three dimensional (raised) due to shading, etc. With VB2010 my buttons are plain 2D. I have not been able to find a property to give them the 3D appearance.

Is this a limitation of using VB Essentials? If not, what properties give buttons the appearance of 3D?

All replies (2)

Saturday, December 25, 2010 5:21 AM âś…Answered | 2 votes

Make sure your button FlatStyle property is set to System.

In Project Properties, under the Application Tab, uncheck the option to Enable XP visual styles.  This makes the buttons look more like they did in VB5.

A better alternative might be to use an image for the button that creates the 3d effect you are looking for.   See here for some 3d button images.  http://www.xp-web-buttons.com/

 


Wednesday, January 17, 2018 9:09 PM

I could not find project properties or or the application tab. Is this method still valid for 2017 vb? I am using c# if that matters at all. If it is no longer valid then what method will work in doing this?