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 Hide/Show a tool bar in code

Thread ID:

Created:

Updated:

Platform:

Replies:

18370 Aug 29,2004 11:50 AM Aug 29,2004 04:37 PM Windows Forms 1
loading
Tags: Tools
Luis Guerra
Asked On August 29, 2004 11:50 AM

I would like to be able to hide or show a tool bar in code (the whole tool bar). I do not seem to be able to find how to do it. Can you help thanks luis guerra

Administrator [Syncfusion]
Replied On August 29, 2004 04:37 PM

Hi Luis, There are 2 approaches to hide a XPMenus.Bar : 1. Get the associated CommandBar object and set its Visible property to false CommandBar cmdbar = this.mainFrameBarManager1.GetBarControl(this.bar1); cmdbar.Visible = false; // true if you widh to show it 2. Set BarStyle without the BarStyle.Visible enumeration value bar1.BarStyle = BarStyle.AllowQuickCustomizing | BarStyle.DrawDragBorder; // | BarStyle.Visible if you wish to show it Please refer to the test sample attached that illustrates the above and let me know if this meets your requirements. Thanks for conisdering Syncfusion products. Regards, Guru Patwal Syncfusion, Inc.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

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.

;