Search code examples
c#.netwinforms

How can I make the image size smaller on a button?


I have a button and I want image (.ico file) and text to exist on it. My problem is that I want button's height to be small, but I can't manage to "shrink" the image as much as I want to. The result is to have a piece of image visible on the button and not the hole image. At the image property the image size is fixed (48x48) and the option is grey so I can't change it. How can I make this image to be 16x16?


Solution

  • Try buttonname.BackgroundImageLayout = ImageLayout.Stretch; or change this property in designer.