UserControls as Tabs in Windows Forms TabbedMDI

Normally TabbedMDI is used in MDI applications where the Child forms are the children that get tabbed. But, we can also use TabbedMDI with User Controls as children that are dockable.

Add a UserControl to the form and initialize it inside the parent form. Add a DockingManager and a TabbedMDIManager Control. Dock the User Control and set it as an MDIChild using the below code snippet.

UserControl userControl = new UserControl();

userControl.Parent = this;

// Dock the user contro1 to the form. 

this.dockingManager1.DockControl(userControl, this, Syncfusion.Windows.Forms.Tools.DockingStyle.Tabbed, 200);

// Set the user controls to MDI mode. 

this.dockingManager1.SetAsMDIChild(userControl, true);
Dim userControl As New UserControl()

userControl.Parent = Me 

' Dock the user contro1 to the form. 

Me.dockingManager1.DockControl(userControl, Me, Syncfusion.Windows.Forms.Tools.DockingStyle.Tabbed, 200) 

' Set the user controls to MDI mode. 

Me.dockingManager1.SetAsMDIChild(userControl, True)

See Also

MDI List