How to tab a docking panel into another one
Whether a docking panel is in its own space or tabbed into another panel's space simply depends on the
DockPosition property of the panels. When two or more panels have the same exact
DockPosition then they will all share the same space, thus they will be tabbed on one another.
// mc is a DockMainContainerControl // dc1 is a visible and docked DockControl DockControl dc2 = new DockControl(); dc2.DockPosition = dc1.DockPosition; mc.Controls.Add(dc2);
The code above will create a new docking panel, add it to the main docking container and then set its position to the dock position of another panel already added to the same container. This will actually "tab" the second newly created panel
dc2 to the first existing panel