title: How can i make an MDI form inactive when child form is active
body: <p>I placed an MDI form in my application . If i select an option from file menu as New i will have a child form loaded.</p>
  
  <p>My code is as follows to show the child form</p>
  
  <pre><code>  private void ShowNewForm(object sender, EventArgs e)
      {
          foreach (Form frm in Application.OpenForms)
          {
              if (frm.Text == "Main")
              {
                  IsOpen = true;
                  frm.Focus();
                  break;
              }
          }
          if (IsOpen == false)
          {
              Form childForm = new FrmMain();
              childForm.MdiParent = this;
              childForm.Show();
          }
       }
  </code></pre>
  
  <p>Now what i need is when the child form is in active state i would like to have my MDI inactive until and unless the user closes the child form. </p>
  
  <p>Generally for forms  we will write </p>
  
  <pre><code>        frm.showDialog()
  </code></pre>
  
  <p>So how to resolve this </p>