How to temporarily unparent a child form in WinForms TabbedMDIManager?
Temporarily unparent a child form
To make a child form temporarily unparent, its MdiParent property has to be set to null, and its visibility should be set 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()