Articles in this section
Category / Section

How to load MDIForm as a child form in the WinForms TabbedMDIManager?

2 mins read

Load the MDIForm as a child form

In the WinForms TabbedMDIManager, it is possible to load the MDI container as a child of another MDI container, by the following steps.

1. Load the Child MDI Form as a separate control in the ParentMDIForm.

2. Disable the Child MDI Form TopLevel option.

C#

// Adds the child form in the TabbedMDI form.
ChildForm1 childForm1 = new ChildForm1();
childForm1.TopLevel = false;
//Adds the child form as a control.
this.Controls.Add(childForm1);
childForm1.Show();
ChildForm2 childForm2 = new ChildForm2();
childForm2.TopLevel = false;
this.Controls.Add(childForm2);
childForm2.Show();

VB

'Adds the child form in the TabbedMDI form.
Dim childForm1 As New ChildForm1()
childForm1.TopLevel = False
' Adds the child form as a control.
Me.Controls.Add(childForm1)
childForm1.Show()
Dim childForm2 As New ChildForm2()
childForm2.TopLevel = False
Me.Controls.Add(childForm2)
childForm2.Show()

 

ChildMDIForm loaded in the TabbedMDIManager

Figure 1: ChildMDIForm loaded in the TabbedMDIManager



ChildMDIForm loaded in the TabbedMDIManager with specified location

Figure 2: ChildMDIForm loaded in the TabbedMDIManager with specified location

Samples:

C#: TabbedMDI_C#

VB: TabbedMDI_VB

Conclusion

I hope you enjoyed learning about how to load MDIForm as a child form in the WinForms TabbedMDIManager.

You can refer to our WinForms TabbedMDIManager’s feature tour page to know about its other groundbreaking feature representations. You can also explore our WinForms TabbedMDIManager’s feature tourdocumentation to understand how to present and manipulate data.

For current customers, you can check out our WinForms components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our Winforms TabbedMDIManager and other WinForms components.

If you have any queries or require clarifications, please let us know in the comment section below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied