Is there any way I can fit/resize the image of ToolStrip item? I already set the property AutoSize = False
, ImageScaling = SizeToFit
& Size = 40, 40
but only the item's boxes resizing (leave spaces around image) and the image size is still with it's default size.
I then came up with inserting the image using BackgroundImage instead of inserting it at Image. I can fit/resize the image but the problem is when I run my system and pointing the cursor on the ToolStrip item, the item's image disappear. I found this solution Resizing ToolStripButtons to fit complete BackGround image but I don't know how to apply it using vb.net
Kindly to help me. Thank you.
If you want your images show in original size
AutoSize
property of ToolStrip
to true
ImageScaling
property of ToolStripItem
to None
If you want your images show in a specific size
AutoSize
property of ToolStrip
to true
ImageScalingSize
property of ToolStrip
to your specific size, for example 32,32
ImageScaling
property of ToolStripItem
to SizeToFit