Guides & Tutorials (beta)

Add or Remove CommandBar MDI Buttons

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

You can add or remove MDI buttons that control the child windows in a MDI application. The CommandBars.SetFlags method is used to apply one of the flags from the XTPMenuBarFlags enumeration.

Menu bar with the system MDI popup added
article

Menu bar with the minimize MDI button hidden
article

Menu bar with the maximize MDI button hidden
article

Menu bar with the close MDI button hidden
article

Menu bar with the all MDI buttons hidden
article

This sample code illustrates how to add a MDI popup control on the menu bar.

CommandBars(1).SetFlags xtpFlagAddMDISysPopup, 0

This sample code illustrates how to hide all MDI buttons on the menu bar.

CommandBars(1).SetFlags xtpFlagHideMDIButtons, 0

This sample code illustrates how to hide the maximize MDI button on the menu bar.

CommandBars(1).SetFlags xtpFlagHideMaximizeBox, 0

This sample code illustrates how to hide the minimize MDI button on the menu bar.

CommandBars(1).SetFlags xtpFlagHideMinimizeBox, 0

This sample code illustrates how to hide the close MDI button on the menu bar.

CommandBars(1).SetFlags xtpFlagHideClose, 0

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 Guaranteed

Contact sales@codejock.com for more details.