Reputation: 163
I want to implement some navigation buttons (no text, only image, like flat button).
I add default button with BackgroundImage property. And it has a small gap between border and image.
How can I remove that gap?
Upvotes: 1
Views: 482
Reputation: 1857
As far i got your concern. You need to set two properties of Button.
button.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
button1.FlatAppearance.BorderSize = 0;
Upvotes: 2
Reputation: 304
Set border property to None will make the button fully flat and just flat image will be shown
Upvotes: 0