Guides & Tutorials (beta)

Removing the Expand Button from a ToolBar

by Mike Palmatier Visual Basic 6 Created on 10/20/2005  |  Updated on 07/30/2024 0/5 ( 0 votes )

The Expand Button is the button displayed at the end of a toolbar and it displays a list of the buttons on the toolbar so that the user can easily hide or show them. At the bottom of the list is a customize option to further customize the toolbars.

Expand button

The code below will remove the Expand Button from all the tool bars.

CommandBars.Options.ShowExpandButtonAlways = False

You can also hide the Expand Button for toolbars on an individual basis. To do this, you need to set the value of the ShowExpandButton property for each individual toolbar. This can be used to override the effects of ShowExpandButtonAlways for individual toolbars.

The code below will show the Expand Button for the first toolbar. Note that CommandBar(1) is the ActiveMenubar.

CommandBars(2).ShowExpandButton = True

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.