)
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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to disable the context menu on docked controls in WinForms Docking Manager?

Platform: WinForms |
Control: DockingManager |
Published Date: January 29, 2015 |
Last Revised Date: December 4, 2019

Context menu

The Context Menu can be disabled for docked and auto hidden controls by disabling the properties EnableContextMenu and EnableAutoHideTabContextMenu in DockingManager. The following code example is to demonstrate the same.

C#

//To disable the context menu
this.dockingManager1.EnableContextMenu = false;
//To hide the menu button on docking manager
this.dockingManager1.MenuButtonEnabled = false;
//To set the dockable controls on autohide mode
this.dockingManager1.SetAutoHideOnLoad(this.panel3, true);
//To disable the context menu on auto hide tab
this.dockingManager1.EnableAutoHideTabContextMenu = false;

VB

'To disable the context menu
Me.dockingManager1.EnableContextMenu = False
'To hide the menu button on docking manager
Me.dockingManager1.MenuButtonEnabled = False
'To set the dockable controls on autohide mode
Me.dockingManager1.SetAutoHideOnLoad(Me.panel3, True)
'To disable the context menu on auto hide tab
Me.dockingManager1.EnableAutoHideTabContextMenu = False

Sample: http://www.syncfusion.com/downloads/support/directtrac/general/DockingManager_ContextMenu-1983204949.zip

UG document link: https://help.syncfusion.com/windowsforms/dockingmanager/dock-window#enabledisable-the-context-menu

2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

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

Up arrow icon

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