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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Easily show/hide bars in MainFrameBarManager?

Thread ID:





12918 Apr 15,2004 06:47 AM UTC Apr 16,2004 09:47 AM UTC WinForms 3
Tags: Tools
iliyan georgiev
Asked On April 15, 2004 06:47 AM UTC

A have in my project many bars and I want to show/hide some bars programmatically? How could this be done easily? Thanks in advance ;)

Administrator [Syncfusion]
Replied On April 15, 2004 12:10 PM UTC

Hi Iliyan, You could get hold of the CommandBarExt associated with the Bar object and set its Visible property to false for this purpose (as shown in code below). CommandBarExt cmdbar = this.mainFrameBarManager1.GetBarControl(bar) as CommandBarExt; cmdbar.Visible = isVisible; Please refer to the sample attached that illustrates this. Thanks for considering Syncfusion products. Regards, Guru Patwal Syncfusion, Inc.

iliyan georgiev
Replied On April 16, 2004 08:42 AM UTC

Thanks, works great ;)

Administrator [Syncfusion]
Replied On April 16, 2004 09:47 AM UTC

Hi Iliyan, Thanks for the update. Please feel free to contact us if you need any other information. Regards, Guru Patwal Syncfusion, Inc.


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon

Live Chat Icon For mobile
Live Chat Icon