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
 
Back
Top