Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove button border windows forms

Is there a way to remove the white border of the button.I added an image to the button and I got this border. I tried with button1.FlatAppearance.BorderSize = 0; but it doesn't work.

img1

img2

like image 800
Ionuț Gabriel Pițigoi Avatar asked Sep 01 '26 12:09

Ionuț Gabriel Pițigoi


1 Answers

You need to set the button to use the flat appearance.

button1.FlatStyle = FlatStyle.Flat;
button1.FlatAppearance.BorderSize = 0;
like image 139
Tobbs Avatar answered Sep 03 '26 00:09

Tobbs



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!