Articles in this section
Category / Section

How to temporarily unparent a child form in WinForms TabbedMDIManager?

1 min read

Temporarily unparent a child form

To make a child form temporarily unparent it's MdiParent property has to be set as null and makes it visibility to false. Please refer the below code snippet which illustrates this:

C#

//Unparent
hiddenForms.Add(form);
form.MdiParent = null;
//Reparent
form.MdiParent = this;
form.Show();

VB

'Unparent
form.MdiParent = Nothing
form.Hide()
'Reparent
form.MdiParent = Me
form.Show()

 

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