I have created a custom button and placed it on to a win form. The button has an image and I remove all border. Here is the snippet of the custom button class...
this.FlatAppearance.BorderColor = SystemColor.Control;
this.FlatAppearance.BorderSize = 0
this.FlatStyle = FlatStyle.Flat
This code line remove any border and make button look like an image button when it got focus or clicked.
Now the problem is when I set the win form AcceptButton property and assign this button name to this property to make this button as default button (when press enter from keyboard will execute the button eventhandler), I
could see a border around the button control. Is there any way/property/override to remove this feature or any other workaround?
Quick response would be highly appreciated.
View Complete Post