How to prevent more than one instance of form from being displayed?

D

David Hearn

I have a button on a main form that uses the following code to open another
window (this is NOT a MDI app):

Dim objCustomize As New frmCustomize

objCustomize.Show()

My problem is that if I click on the button again, it loads another instance
of the form so I now have two of the same form open. How do I prevent this
from happening?

Thanks in advance!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top