Guides & Tutorials (beta)

Changing the Popup Menu Icon Size

by Mike Palmatier Visual Basic 6 Created on 02/02/2008  |  Updated on 07/30/2024 0/5 ( 0 votes )

You can change the size of the icons that appear in popup menus independently from the toolbar icon size. To do this the SetPopupIconSize method is used. You simply specify the width and height of the icon size you wish to use in the popup menus. The only thing you need to do is supply an icon of the size you want to display. If you do not supply a larger icon size, then the closest size icon to the one you are trying to display will be "stretched" to the specified size.

Notice in the picture below that both a 16x16 and 24x24 icon have been added.

16x16 and 24x24 icons

16x16 and 24x24 icons

The code below will set the size of popup menu icons to 24x24.

CommandBars.Options.SetPopupIconSize 24, 24

User Comments

No comments yet, sign in to comment.

Secure Transactions

Online transactions are secure and protected.


Ssl seal 1
This site is protected by Trustwave's Trusted Commerce program
CompliAssure Secured

Money Back Guarantee

If you are not 100% happy with your purchase within 30 days, you can return it for any reason. Your satisfaction is our priority!


Satisfication Guarantee

Contact sales@codejock.com for more details.