title: Dynamically Open form
body: <p>I have third party control called TopicBar which looks like window xp navigation bar that you can see on the left side of a window</p>
  
  <p>In my application I've 71 forms I have created a DB table to store all my forms <code>Name</code> and <code>Text</code>,A partcular user can add which forms(by searching form's name that I have already stored in a table) should add in topicbar as item.</p>
  
  <p>For example, A form called FrmBill and its name is Bill once a user addes Bill to Topicbar it will successfully creates an item with name Bill,Now what I'm facing is I need to open the form FrmBill when that user clicks on Bill item in topicbar</p>
  
  <p>I can get form name ie FrmBill is a user clicks in Bill but I couldnt open the form becuase I need to dynamically create instance or call Form here frmBill</p>
  
  <p>what I have done so far</p>
  
  <pre><code> Dim formName As String
      Dim frm As Form
  
  Using conn As New SqlConnection(conn_str)
      conn.Open()
      Dim cmd As SqlCommand
      cmd = New SqlCommand("", conn)
      cmd.CommandText = "select top 1 formname from winforms where id=" &amp; winformid &amp; ""
      formName = cmd.ExecuteScalar
      'output: FrmBill
      frm = New Form
      frm.Name = formName '(FrmBill)
  
      With frm
          .MdiParent = FrmMain
          .Show()
          .Focus()
      End With
  
  End Using
  </code></pre>
  
  <p>Note: in this function I can get form name ie <code>FrmBill</code> from the DB, but its not showing the actual form <code>FrmBill</code></p>
  
  <p>So is there anyways to declare form name like below</p>
  
  <pre><code>dim frm as new "&amp; formname &amp;"
  </code></pre>