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

disable hiding toolbar

Thread ID:

Created:

Updated:

Platform:

Replies:

8141 Oct 22,2003 06:34 PM UTC Oct 23,2003 11:54 AM UTC WinForms 5
loading
Tags: Tools
Terry Foster
Asked On October 22, 2003 06:34 PM UTC

I have a non-dockable, floating toolbar that I would like to not let the user allow to close. How can I do this? Thanks, Terry

Arun Srinivasan [Syncfusion]
Replied On October 22, 2003 07:10 PM UTC

Hi Terry, The following Essential Tools Knowledgebase Article addresses this issue: How do I prevent the user from modifying the visibility of a particular toolbar Regards, Arun

Administrator [Syncfusion]
Replied On October 22, 2003 07:21 PM UTC

Hi Terry, The following code should do the job. /* associates the ToolBar with the DockingManager and sets it as a floating control initially */ this.dockingManager1.FloatControl(this.myToolBar, this.myToolBar.ClientRectangle); /* sets the ToolBar as float only and it can never be docked */ this.dockingManager1.SetFloatOnly(this.myToolBar, true); /* hides the 'X' close button on the ToolBar so that it can never be closed */ this.dockingManager1.SetCloseButtonVisibility(this.myToolBar, false); Please let me know if this helps. Thanks for choosing Syncfusion products. Regards, Guru Patwal Syncfusion, Inc.

Terry Foster
Replied On October 23, 2003 10:20 AM UTC

The problem I see now is that all three methods of the 'DockManager' class you suggested take a 'Control' class object, which the Syncfusion 'Bar' class does not derive from. How can I do what you've suggested with a syncfusion toolbar that I've created in design mode? Thanks, Terry

Terry Foster
Replied On October 23, 2003 10:20 AM UTC

The problem I see now is that all three methods of the 'DockManager' class you suggested take a 'Control' class object, which the Syncfusion 'Bar' class does not derive from. How can I do what you've suggested with a syncfusion toolbar that I've created in design mode? Thanks, Terry

Administrator [Syncfusion]
Replied On October 23, 2003 11:54 AM UTC

Hi Terry, I had misinterpreted your query earlier and assumed that you were referrring to WinForms ToolBar control. Since you are using Syncfusion ToolBar, please refer to the Knowledgebase article pointed out by Arun above for this purpose. I apologise for the confusion caused. 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.

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

;