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

disable hiding toolbar

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

5 Replies

AS Arun Srinivasan Syncfusion Team October 22, 2003 03:10 PM

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


AD Administrator Syncfusion Team October 22, 2003 03:21 PM

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.


TF Terry Foster October 23, 2003 06:20 AM

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


TF Terry Foster October 23, 2003 06:20 AM

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


AD Administrator Syncfusion Team October 23, 2003 07:54 AM

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.

Loader.
Live Chat Icon For mobile
Up arrow icon