title: Initialize windows form object dynamically
body: <p>How can I <strong>dynamically initialize a win form.</strong> In my application I am having numerous forms, like more than 50 and the below code is repeated as many times..  </p>
  
  <p>so I want to create some function for it and do this job. But how can I create a <code>new () instance</code> of a particular Form.<br>
  Any help will be greatly appreciated.</p>
  
  <pre><code>private void ShowForm(object frm)
  {
      if (frm == null || frm.IsDisposed)
      {
          frm = new &lt;&lt;Here is some Class Name&gt;&gt; { MdiParent = this };
          frm.Show();
          frm.WindowState = FormWindowState.Maximized;
      }
      else
      {
          frm.Activate();
      }
   }
  </code></pre>