)
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 initialize MDIChild dynamically in WinForms TabbedMDIManager?

Platform: WinForms |
Control: TabbedMDIManager |
Published Date: April 13, 2016 |
Last Revised Date: January 29, 2020

Initialize MDIchild

In TabbedMDIManager, it is possible to initialize MDI Child Form. This can be achieved by following below steps.

1)Need to initialize Child Form instance.

2)Need to specify MDIParent, for MDI Child forms.

3)Need to activate the MDI child.

Following code examples demonstrates the same.

C#

//Adds Child form into Parent form
Form2 form1 = new Form2();
form1.Text = "Child Form2";
form1.MdiParent = this;
form1.Show();

VB

'Adds Child form into Parent form
Dim form1 As New Form2()
form1.Text = "Child Form2"
form1.MdiParent = Me
form1.Show()

Screenshot                                                        Display child MDIForm when menu item is selected with image

Figure 1. Display child MDIForm when MenuItem is selected with image.

Samples:

C#:How to display the child MDIForm when MenuItem is selected C#

VB: How to display the child MDIForm when MenuItem is selected 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