)
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 display Usercontrol as MDI child in WinForms TabbedMDIManager?

Platform: WinForms |
Control: TabbedMDIManager |
Published Date: March 11, 2016 |
Last Revised Date: January 29, 2020

Display usercontrol as MDI child

In TabbedMDI Manager, User control cannot be added as MDI Child. This requirement can be achieved by using functions named SetEnableDocking and SetAsMDIChild in DockingManager.

SetEnableDocking - To add User control as Docking child control.

SetAsMDIChild - To set user control as MDI child.

C#

UserControl1 user = new UserControl1();
//Enable Docking Manager on User Control
this.dockingManager1.SetEnableDocking(user, true);
//To set the User Control as an MDI child
this.dockingManager1.SetAsMDIChild(user, true);

VB

Dim user As New UserControl1()
'Enable Docking Manager on User Control
Me.dockingManager1.SetEnableDocking(user, True)
'To set the User Control as an MDI child
Me.dockingManager1.SetAsMDIChild(user, True)

Screenshot

User control as tab in TabbedMDI with image

Figure 1. User control as Tab in TabbedMDI with Image.

Samples:

C#: How to Open User control as Tab in TabbedMDI C#

VB: How to Open User control as Tab in 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