hey
i am trying to check a certain form if its open
and dispose it and reopen same form again
i tried a code
dosnt seem to do the job and the form dosnt close
this is my code
Code:
            Dim isfound As Boolean = False
                If isfound = False Then
                    If s.StartsWith("NMBR=") Then
                        isfound = True
                        If Application.OpenForms().OfType(Of FrmCallerID).Any Then
                            FrmCallerID.Close()
                            Dim frm As New FrmCallerID With {
                            .PhoneCallerID = s.Substring("NMBR=".Length)
                        }
                            frm.Show()

                        Else
                            Dim frm As New FrmCallerID With {
                            .PhoneCallerID = s.Substring("NMBR=".Length)
                        }
                            frm.Show()
                        End If
                    End If
                End If
tnx for any help
salsa