c# - Removing the border of a button when hovered over or clicked? -


how remove border of button? it's not custom button - has image.

change button's flatappearance.mouseoverbackcolor transparent, either via properties panel @ design time, or @ runtime:

button1.flatappearance.mouseoverbackcolor = color.transparent; 

while you're @ it, may want change color when button being clicked too:

button1.flatappearance.mousedownbackcolor = color.transparent; 

however, it's not going give user indication of being button anymore.


Comments