Guides & Tutorials (beta)

Adding a ToolBar

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

The CommandBars.Add method is used to add a blank toolbar. The method accepts both a name and toolbar position for the toolbar. The name given to the toolbar is seen when customizing toolbars. It is recommended that you name the toolbar to a meaningful name that summarizes what type of tasks the group of buttons on the toolbar perform. The toolbar position indication where the toolbar will be located when it is added, available locations are stored in the XTPBarPosition enumeration. Locations the toolbar can be placed include the top, bottom, left, and right side of your application. The toolbar can also start out floating.

The picture below illustrates a blank toolbar.

Blank Toolbar

The code below illustrates how to add a blank toolbar to the top of your application.

Dim ToolBar As CommandBar
Set ToolBar = CommandBars.Add("Standard", xtpBarTop)

User Comments

No comments yet, sign in to comment.

New Year Sale 2025

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.