Articles in this section
Category / Section

How to disable the Context Menu from being displayed when you right-click AutoHideTab control?

1 min read

The context menu of AutoHideTab can be enabled or disabled by using the EnableAutoHideTabContextMenu property in DockingManager. The following code examples demonstrate the same.

C#

//To enable the Context Menu on Auto-hidden tab.
this.dockingManager1.EnableAutoHideTabContextMenu = true;
//To disable the context menu on Auto-hidden tab.
this.dockingManager1.EnableAutoHideTabContextMenu = false;

VB

'To enable the context menu on Auto-hidden tab.
Me.dockingManager1.EnableAutoHideTabContextMenu = True
'To disable the context menu on Auto-hidden tab.
Me.dockingManager1.EnableAutoHideTabContextMenu = False

 

Note:

The default value of the EnableAutoHideTabContextMenu is True and the context menu is displayed when you right-click on the auto hidden tab.

 

 

Showing context menu enabled in auto hidden tab

Figure 1: Context menu enabled on Auto hidden tab

Showing context menu disabled in auto hidden tab

Figure 2: Context menu disabled on Auto hidden tab

Sample Links:

C#: DockingManager_AutoHide Tab_ContextMenu_C#

VB: DockingManager_AutoHide Tab_ContextMenu_VB

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied