title: Show/hide, BringToFront/SendToBack a panel on Parent form when a Child Form on the MDI Parent Form closes or appears
body: <p>I need to hide a panel on the Parent Form when a Child Form on an MDI Parent Form closes &amp; show back the panel on the Parent form when the Child Form is closed.</p>
  
  <p>Currently am using SendtoBack() to show the Child Form infront of the Panel which is on the Parent Form , but when i close the Child Form, then the Panel doesn't appears back, even if i use :</p>
  
  <p><code>BringtoFront()</code> </p>
  
  <p>OR</p>
  
  <pre><code>Panel1.Visible=true
  
  
      public partial class CHILD : Form
          {
        private void CHILD_Load(object sender, EventArgs e)
              {
                  this.FormClosed += new FormClosedEventHandler(CHILD_FormClosed);
              }
  
       void CHILD_FormClosed(object sender, FormClosedEventArgs e)
              {
                  PARENTForm P = new PARENTForm();
                  P.panel1.BringToFront();
                  P.panel1.Visible = true; 
  
              }
  }
  
  
  
  
  public partial class Form1 : Form
     {
     private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
              {
                  CHILD P = new CHILD();
                  P.Showg();
                  P.MdiParent = this;
                  P.BringToFront();
                  panel1.SendToBack();
                  panel1.Visible = false;
              }
      }
  </code></pre>
  
  <p>THIS ISN'T WORKING....PLEASE HELP..!</p>
  
  <p><img src="https://i.stack.imgur.com/k82UM.png" alt="enter image description here"></p>