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

How can you disable the ''Tabbed Document '' option for docked controls

Thread ID:





54570 Jan 11,2007 01:39 PM UTC Jan 19,2007 04:09 PM UTC WinForms 3
Tags: Tools
Guy Mahieu
Asked On January 11, 2007 01:39 PM UTC

In an MDI form using TabbedMDIManager and a DockingManager, I want to prevent the 'Tabbed Document' option from appearing in the docking ropdown of the docked controls. Is there an easy way of achieving this?

Murugan [Syncfusion]
Replied On January 11, 2007 03:24 PM UTC

Hi Guy,

This could be achieved by handling dockingManager1_DockContextMenu and dockingManager1_DockAllow events.

Here is the code snippet:

private void dockingManager1_DockContextMenu(object sender, Syncfusion.Windows.Forms.Tools.DockContextMenuEventArgs arg)
Syncfusion.Windows.Forms.Tools.XPMenus.PopupMenu p = arg.ContextMenu;
p.ParentBarItem.Items[2].Visible = false;

private void dockingManager1_DockAllow(object sender, Syncfusion.Windows.Forms.Tools.DockAllowEventArgs arg)
if (arg.DockStyle == Syncfusion.Windows.Forms.Tools.DockingStyle.Tabbed && arg.TargetControl == this )
arg.Cancel = true;

Herewith I have also attached the sample. Please have a look at the sample and let me know if it helps.


Thanks for choosing Syncfusion products.

Murugan P.S

Guy Mahieu
Replied On January 16, 2007 09:44 AM UTC

Thanks, it looks like it works. I decided to disable the context menu for the dockingmanager altogether though.


Murugan [Syncfusion]
Replied On January 19, 2007 04:09 PM UTC

Hi Guy,

Thank you for your update.

Murugan P.S


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.

Please sign in to access our forum

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

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