C#: button image gets clipped on the bottom

87 Views Asked by At

As you can see in this image, the image set on the button, gets bottom clipped for no apparent reason. The image is 24x24px big and the AutoSize property of the button is set to True.

The button is positioned directly on the window, so there can't be any layout messing with its size.

2

There are 2 best solutions below

2
James Gould On BEST ANSWER

There is an implicit margin inside of the <button> control. If you expand the button's height the clipping will disappear.

0
Clock On

Set the image as button's "BackgroundImage" property and then set the button's "BackgroundImageLayout" property as "Stretch".