S
SamSpade
I declare a variable X of type myForm then instantiate myForm saving a
reference in the variable X, and then do X.Show.
If I need to know if the form has been shown yet, I check X against Nothing.
If the users closes MyForm I'd like X to be set to Nothing but don't know
how to sense (except in MyForm) that myForm is closing.
In the myForm's Closing event if I set Me=Nothing will that set X to
Nothing?
How about doing it in the Closed event?
reference in the variable X, and then do X.Show.
If I need to know if the form has been shown yet, I check X against Nothing.
If the users closes MyForm I'd like X to be set to Nothing but don't know
how to sense (except in MyForm) that myForm is closing.
In the myForm's Closing event if I set Me=Nothing will that set X to
Nothing?
How about doing it in the Closed event?