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()