Hi Mitul,
Thank you for your interest in Syncfusion products.
Removing TabbedMDIManager Context menu items on tabbed docked Form.If you wish to remove TabbedMDIManager Context menu items on tabbed docked Form, then you could do so by
deriving from TabbedMDIManager as shown below :
[C#]
public class CustomTabbedMDIManager : TabbedMDIManager
{
public CustomTabbedMDIManager() : base() { }
protected override void ContextMenu_BeforePopup(object sender, CancelEventArgs e)
{
ParentBarItem popupMenuParentBarItem = sender as ParentBarItem;
foreach (BarItem bitem in popupMenuParentBarItem.Items)
{
if (bitem.Text == "&Close" || bitem.Text == "New Hori&zontal Tab Group" || bitem.Text == "New &Vertical Tab Group")
{
popupMenuParentBarItem.Items.Clear();
break;
}
e.Cancel = true;
}
base.ContextMenu_BeforePopup(sender, e);
}
}
Here is a sample for your reference.
http://websamples.syncfusion.com/samples/Tools.Windows/F70117/main.htmIn the sample, make the docked window to tabbed document using 'Tabbed Document' option. In the TabbedMDIForm, right click it to see the dock options.
Please let me know if this helps you.
Regards,
Jaya