title: Check if form is Opened
body: <p>I give this question for more knowledge. How can I know if the form is Opened in my application or not, in order not to open it again I mean not to create an instance of the same form while it's running</p>
  
  <pre><code>   Dim frmCollection As New FormCollection()
      frmCollection = Application.OpenForms()
      If frmCollection.Item("Form2").IsHandleCreated Then
          MsgBox("Yes Opened")
      Else
          Dim f As New Form2()
          With f
              .Text = "form2"
              .Show()
          End With
      End If
  </code></pre>
  
  <p>if I executes this code many times it will create more instances of the form Form2
  How can I check if this form is not already opened</p>