Can someone tell me what is wrong with this code:
Private Sub toolstripAuctionListings_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles toolstripAuctionListings.Click
If My.Forms.frmAuctionListings.Open() = True Then
My.Forms.frmAuctionListings.Close()
End If
My.Forms.frmAuctionListings.ShowDialog()
End Sub
I know it is the "Open" but I'm not sure what to do. I am trying to check to see if a form is open 1st before trying to open it again. The click event is for a toolstrip menu that is used in all forms in the project. I do not have any settings set for a MDI application.
I'd apprecidate any help anyone has!
Private Sub toolstripAuctionListings_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles toolstripAuctionListings.Click
If My.Forms.frmAuctionListings.Open() = True Then
My.Forms.frmAuctionListings.Close()
End If
My.Forms.frmAuctionListings.ShowDialog()
End Sub
I know it is the "Open" but I'm not sure what to do. I am trying to check to see if a form is open 1st before trying to open it again. The click event is for a toolstrip menu that is used in all forms in the project. I do not have any settings set for a MDI application.
I'd apprecidate any help anyone has!