-
Jan 16th, 2018, 01:46 PM
#1
Thread Starter
Member
[RESOLVED] Button Shapes ?
.
I'm transitioning from VB/VBA to VB.NET ...
Are all command buttons in .NET flat looking without depth ? VB5 / VBA command buttons have rounded edges and contours.
Is it possible to make a button in .NET look 3d without a third party add on ?
Thanks
-
Jan 16th, 2018, 01:59 PM
#2
-
Jan 16th, 2018, 04:06 PM
#3
Re: Button Shapes ?
Generally buttons in VB .NET should look like standard buttons in your visual theme. That was rounded and had gradients in Windows XP but is back to a more flat style in Windows 10.
If you're using exceptionally old versions of Visual Studio, like 2003 or the one before it, this isn't true. Those versions did not yet support Windows XP visual styles by default. There's literally no reason to use versions that old.
So my guess is you're seeing Windows 10 flat-style buttons and you wish they looked like Windows XP buttons, or maybe the VBA "I can't believe it's not 1991" Windows 3.1 style? Without a screenshot of what you have and what you want it's hard to advise you, but I'd argue it's best to use what looks native on the platform.
This answer is wrong. You should be using TableAdapter and Dictionaries instead.
-
Jan 16th, 2018, 04:25 PM
#4
Thread Starter
Member
-
Jan 16th, 2018, 04:35 PM
#5
Re: Button Shapes ?
Under the project properties, in Application you can choose "Enable xp visual styles". Also the Button control has a "FlatStyle" property you can play with. But your not going to get the exact old style button look.
-
Jan 16th, 2018, 04:49 PM
#6
Thread Starter
Member
Re: Button Shapes ?
Thank you for the tip. Ironically, "Enable xp visual styles" was already engaged. I unchecked it and viola ! The look I was seeking.
Thank you !
-
Jan 16th, 2018, 05:13 PM
#7
Re: [RESOLVED] Button Shapes ?
How old ARE you, anyways? Most of the folks on here are older than you might think.
My usual boring signature: Nothing
-
Jan 16th, 2018, 05:36 PM
#8
Thread Starter
Member
Re: [RESOLVED] Button Shapes ?
Ha ! Ha !
I'm really not old ... just retired two years ago. But don't tell anyone! If everyone thinks I'm on my way out maybe they will share their deepest programming secrets with me.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|