S
Skrenek
I have opened form from another form and I have an variable with reference
on it. But what if someone close referenced form? I tryed to test an
variable on Nothing value but there is still reference on closed form. The
questin is: How can I find out that the referenced form is closed.
I have two ideas:
1) Exception handling
2) Handle closed event of closed form
Is there some better way?
And another problem. When a referenced form is closed, I can still run
frm.Hide() without throwing exception, but frm.Show() fires exception.
Object is closed, so why frm.Hide() doesn't throw the exception too?
Thanks Martin Skrenek
on it. But what if someone close referenced form? I tryed to test an
variable on Nothing value but there is still reference on closed form. The
questin is: How can I find out that the referenced form is closed.
I have two ideas:
1) Exception handling
2) Handle closed event of closed form
Is there some better way?
And another problem. When a referenced form is closed, I can still run
frm.Hide() without throwing exception, but frm.Show() fires exception.
Object is closed, so why frm.Hide() doesn't throw the exception too?
Thanks Martin Skrenek