We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

How to change the size of the ToolStripButton image in the ToolStripEx?

You can change the size of the ToolStripButton image by using the property, ImageScalingSize in the ToolStripEx. It helps to specify the image size used in the ToolStripEx. In order to specify the ImageScalingSize for ToolStripEx, the ImageScaling property should be specified as SizeToFit in the ToolStripButton.

The following code example demonstrates the same.

C#

VB

 

Note:

  1. The Image scaling size is specified as pixels.
  2. The default value of the ImageScaling size is 16 x 16 pixels.
  3. The default value of the ImageScaling property is SizeToFit.

 

Figure 1: Before specifying the ImageScaling size

 

Figure 2: After specifying the ImageScaling size

 

Figure 3: Image scaling is disabled for ToolStripButton2

 

Sample Links

C#: ToolStripEx_ImageScaling_C#

VB: ToolStripEx_ImageScaling_VB

 

Article ID: Published Date: Last Revised Date: Platform: Control:
5382 08/24/2015 08/24/2015 Windows Forms RibbonControlAdv
Did you find this information helpful?
Add Comment
You must log in to leave a comment

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.