I have a mdi form with a pannel docked to the top and a pannel docked to the bottom.
In the middle there is a grid.
I want that when a line in the grid is being double-clicked, a new tab will be added to the pannel on the bottom of the form.
Right now it does that by adding a tab to the TabControl and loading a UserControl... but this is not what I want since I want to be able to group tabs horizontally (And this cannot be done with UserControls and with the TabControl).
When I try to add a new form to the MDI form, it just adds it over the grid in the middle.
Is it even possible to add the forms/tabs to the panel on the bottom, or to an area which has docking?
10x for your reply.
I think that I was misunderstood.
I have found solution what I was looking for. In my case I don't want to do this in Designer but write some method whitch do this in runtime.
An example what I was searching:
public void CompareForms(Form editor1, Form editor2)
{
editor1.MdiParent = MdiForm;
editor2.MdiParent = MdiForm;
editor1.Show();
editor2.Show();
if(ultraTabbedMdiManager1.TabGroups.Count > 0 && ultraTabbedMdiManager1.TabGroups[0].Tabs.Count == 2) { ultraTabbedMdiManager1.TabGroups[0].Tabs[1].MoveToNewGroup(ultraTabbedMdiManager1.TabGroups[0], RelativePosition.After, Orientation.Vertical); }
}
saragani said:Your solution still doesn't help me cause I want the that the MDI children will be displayed inside the panel on the bottom which has dock to bottom.
Mdi children cannot display within a Panel control. They will be automatically be displayed in the MdiClient control (which normally has the dark gray back color). If you want tabs and groups, you will have to use normal mdi child forms and place an UltraTabbedMdiManager on your Form. You can also submit a feature request for the tab control to be able to group tabs: http://ko.infragistics.com/gethelp.
I don't think you can do it in c# designer...
You must do it in runtime since you need reference to an existing MDI Form to be the MdiParent and you also need the child form objects.
I have similar problem,
By default my main window has only one TabGroups.
I want to make another TabGroup in bottom of main window and put there some MdiChild form. All of this i must do in C# not in Runtime.
Is this possible?
It is a part of the parent MDI form.
Your solution still doesn't help me cause I want the that the MDI children will be displayed inside the panel on the bottom which has dock to bottom.
It would have been great if I can add tabs and group them in the regular ultra tab control, but I haven't seen that feature, cause right now I add new tabs to the ultra tab control and each tab contains a user control, but I would like to show 2 groups of tabs side by side.