Is there any way (didn't see one) of removing the default black border on a button?
I want the entire button to be the same color.
Thanks.
Printable View
Is there any way (didn't see one) of removing the default black border on a button?
I want the entire button to be the same color.
Thanks.
Yeah, use a label or a panel instead of a button. Then you get no border. Both of those controls respond to click events, so there is no functional difference between them and buttons as long as you are just using events handled by both.
And if you're using a label or a panel to replace a button, don't forget to provide some way to let the user know it's clickable. This can be done by handling the enter and leave event of the control and change its appearance or the mouse cursor.
You could also change the FlatStyle property of the button. Then you can edit the border colour.
Ok -- didn't see that pull down menu for flat appearance.
thanks.
more to come.
Good solution... I should have thought of this, but I didn't.Quote:
Originally Posted by Typhoon808
Only drawback is that you can't edit it in code from what I can see...
You can do a button1.backcolor
but can't do a...
button1.bordercolor ?
no big deal though.
Yeah, it's there. Only hidden. :)
Code:With Button5
.FlatStyle = FlatStyle.Flat
.FlatAppearance.BorderColor = Color.Brown
.ForeColor = Color.CornflowerBlue
.BackColor = Color.DarkGray
End With