Check for a form open or not

  • Thread starter Thread starter VJ
  • Start date Start date
V

VJ

I have a form1, from which I instance and open form2. I also allow multiple
instances of form2 to be open..How would I check if a form2 is open or not
from form1?

VJ
 
You can keep track (for example in some collection or ArrayList) of forms,
when you open them. As soon as you do new Form and Show you can add
reference to array / list and later search this list.

HTH
Alex
 

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

Back
Top