How to disable the Context Menu from being displayed when you right-click AutoHideTab control?
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.

Figure 1: Context menu enabled on Auto hidden tab

Figure 2: Context menu disabled on Auto hidden tab
Sample Links: