title: Enumerate all forms in VB.NET project, then show them by Name or Fullname?
body: <p>How do I create a reference to a form, simply by its Name or .Fullname..? It seems so simple, but nothing I've tried will work.</p>
  
  <p>Given the following code, the part at the end is where I'm stuck.</p>
  
  <p>Thanks.</p>
  
  <pre><code>Public Class frmLauncher
  
  Private Sub FormPicker_Load(sender As Object, e As EventArgs) Handles MyBase.Load
  
      Dim myAssembly As System.Reflection.Assembly =  System.Reflection.Assembly.GetExecutingAssembly()
      Dim myTypes() As Type = Nothing
  
      ' Both of the following lines seem to do the same thing.
      ' Is one way better or safer than the other? 
      myTypes = myAssembly.DefinedTypes
      myTypes = myAssembly.GetTypes
  
      For Each t In myTypes
          If t.BaseType.FullName.ToString.ToUpper = "System.Windows.Forms.Form".ToUpper Then
              ListBox1.Items.Add(t.Name)
          End If
      Next
  
  End Sub
  
  Private Sub ListBox1_DoubleClick(sender As Object, e As EventArgs) Handles ListBox1.DoubleClick
  
      Dim frmName As String = ListBox1.Text
  
      ' the next line is where I'm totally stuck.
      Dim frm As Form = GetSomethingUnknown(frmName)  
  
      frm.Show()
  
  End Sub
  
  End Class
  </code></pre>