title: How to avoid child form dispose when disposing its parent?
body: <p>I have tow forms Form1 and Form2,this is the code of creating form2 after creating form1</p>
  
  <pre><code>F2=new Form2();
  F2.Dock = DockStyle.Fill;
  F2.TopLevel = false;
  F2.Parent = F1;//setting the parent of form1 to be form1
  </code></pre>
  
  <p>Also, i want to have only one Form2 object in my application but the parent changes so F1 may be disposed and set the F2 parent to other object of Form1 type.
  Now when i dispose F1,F2 is disposed how to get avoid disposing F2 when disposing F1?
  Is there away to get the onparentdispose event from child then changing its parent then?
  <img src="https://i.stack.imgur.com/qcemv.png" alt="enter image description here"></p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>i want only green form per each red form but the layout of the blue forms changes and therefore it get disposed</p>