title: how to declare visual basic windows form by name
body: <p>I am trying to figure a way to declare windows form in visual basic (VS 2013) using name.
  i.e. I have Form1 in my application. As of now, I use</p>
  
  <pre><code>  Private Sub BBB ()
    dim f1 as New Form1
    Call AAA (f1) 
    End Sub
  </code></pre>
  
  <p>What I would like to do is something like:</p>
  
  <pre><code>Private Sub BBB (formname as string)
  Dim f1 as New Form
  f1.Name = formname
  Call AAA (f1)
  End Sub
  </code></pre>
  
  <p>But that doesn't work.</p>