|
-
Jun 17th, 2008, 11:08 AM
#1
Thread Starter
Fanatic Member
[RESOLVED] Button border -- no thanks
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.
-
Jun 17th, 2008, 11:10 AM
#2
Re: Button border -- no 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.
My usual boring signature: Nothing
 
-
Jun 17th, 2008, 11:15 AM
#3
Re: Button border -- no thanks
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.
Let us have faith that right makes might, and in that faith, let us, to the end, dare to do our duty as we understand it.
- Abraham Lincoln -
-
Jun 17th, 2008, 11:18 AM
#4
Member
Re: Button border -- no thanks
You could also change the FlatStyle property of the button. Then you can edit the border colour.
-
Jun 17th, 2008, 11:23 AM
#5
Thread Starter
Fanatic Member
Re: Button border -- no thanks
Ok -- didn't see that pull down menu for flat appearance.
thanks.
more to come.
-
Jun 17th, 2008, 11:25 AM
#6
Re: Button border -- no thanks
 Originally Posted by Typhoon808
You could also change the FlatStyle property of the button. Then you can edit the border colour.
Good solution... I should have thought of this, but I didn't.
Let us have faith that right makes might, and in that faith, let us, to the end, dare to do our duty as we understand it.
- Abraham Lincoln -
-
Jun 17th, 2008, 12:00 PM
#7
Thread Starter
Fanatic Member
Re: [RESOLVED] Button border -- no thanks
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.
-
Jun 17th, 2008, 03:04 PM
#8
Frenzied Member
Re: [RESOLVED] Button border -- no thanks
Yeah, it's there. Only hidden. 
Code:
With Button5
.FlatStyle = FlatStyle.Flat
.FlatAppearance.BorderColor = Color.Brown
.ForeColor = Color.CornflowerBlue
.BackColor = Color.DarkGray
End With
~Peter

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
|