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

后端 未结 6 1496
名媛妹妹
名媛妹妹 2021-02-05 00:00

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

6条回答
  •  一向
    一向 (楼主)
    2021-02-05 00:42

    My solution was to use an ImageList control. You can define the size the images are to be displayed (e.g. I set the ImgageList ImageSize property to 16x16) and then set the button.ImageList and ImageIndex properties instead of the Image property.

提交回复
热议问题