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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Autohide empty toolbar

Thread ID:





34703 Sep 14,2005 04:01 PM UTC Sep 15,2005 12:00 PM UTC WinForms 1
Tags: Tools
Christian Rattat
Asked On September 14, 2005 04:01 PM UTC

Hi, In my application I show and hide toolbar items depending of what functionality is available. In some cases it might happen that all items are hidden. In this case the toolbar remains empty and I would like to let the toolbar disappear in this case automatically. Is there an easy way to check either if the toolbar has a visible item or let the toolbar automatically hide when it is empty and to reappear when an item is shown again? I''m using SF Suite Thanks in advance! Chris

Administrator [Syncfusion]
Replied On September 15, 2005 12:00 PM UTC

Hi Chris, It is possible to hide the toolbar by using the following code snippet: foreach(BarItem baritem in this.bar2.Items) { if(baritem.Visible==true) { visible=true; } } mainFrameBarManager1.GetBarControl(bar2).Visible=visible; I have attached a sample that illustrates this. Let me know if this meets your requirements. We appreciate your cooperation. Regards, Ebenezer.P Toolbar_4166.zip


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

or the page will be automatically redirected to 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