Hi Alan,
My apologies for the delay in responding to you.
If your intention is to create a HorizontalGroup without using ContextMenu means, please use the following code snippet in button_click Event.
Form childform = new Form();
childform.WindowState = FormWindowState.Normal;
childform.Text = "MDI Child Form " + count.ToString();
childform.MdiParent = this;
childform.Show();
this.tabbedMdiManager.CreateNewHorizontalGroup();
Using Beforpopup Event and clear method you can disable and clear the contextmenu respectively.
void ContextMenuItem_BeforePopup(object sender, CancelEventArgs e)
{
e.Cancel = true;
}
this.tabbedMdiManager.ContextMenuItem.Items.Clear();
You can add the new item in context menu using Add() Method in tabbedMDIManager. The following code snippet which illustrate how to add a neww context menu item in tab.
BarItem x = new BarItem();
x.Text = "New";
this.tabbedMdiManager.ContextMenuItem.Items.Add(x);
x.PerformClick();
x.Click += new EventHandler(x_Click);
Pleasse refer the attached sample.
http://websamples.syncfusion.com/samples/Tools.Windows/F63672/main.htmThe above sample which illustrates how to create horizontalgroupbar and how to customize the tab using contextmenu programatically.
Thanks and Regards,
Rashidha.