)
We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Platform: WinForms |
Control: TabbedMDIManager |
Published Date: August 19, 2015 |
Last Revised Date: January 30, 2020

Load the MDIForm as a child form

In the 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

2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon