title: how to call mdi form by function
body: <p>How do I create a function for following code so that i may not have to write the following whole code to make a form be used as MDICHILD Form.</p>
  
  <pre><code>Students stu = null;
      private void studentsToolStripMenuItem1_Click(object sender, EventArgs e)
      {
          if (stu == null || stu.IsDisposed)
          {
              stu = new Students();
              stu.MdiParent = this;
              stu.Show();
          }
          else
          {
              stu.Activate();
          }
      }
  </code></pre>
  
  <p>while I want it like this</p>
  
  <pre><code>private void studentsToolStripMenuItem1_Click(object sender, EventArgs e)
      {
          CreateMdiChild(Students);
      }
  </code></pre>
  
  <p>and function should be like this</p>
  
  <pre><code>public void CreateMdiChild(Form form)
      {
          //expected code            
      }
  </code></pre>