title: specify parent MDI form
body: <p>I am trying to specify the parent MDI form when showing a form in c#</p>
  
  <p>All the examples suggest just using </p>
  
  <pre><code>FormVariable.Parent = this;
  </code></pre>
  
  <p>this works ok assuming you want the form to be opened from the parent window all the time.</p>
  
  <p>I want to be able to open a form and set the Parent form to my MDI Parent form by specifying the name.</p>
  
  <p>in VB.net I have used</p>
  
  <pre><code>Me.MdiParent = TheNameOfMyParentForm
  </code></pre>
  
  <p>When I try anything similar in c#</p>
  
  <pre><code>this.MdiParent = CruxMDI();
  </code></pre>
  
  <p>I get</p>
  
  <blockquote>
    <p>'Crux.CruxMDI' is a 'type' but is used like a 'variable'</p>
  </blockquote>