Closing event in a MID Child form I don't know if the child form is closing or the main form is clos

  • Thread starter Thread starter **Developer**
  • Start date Start date
D

**Developer**

When I get a closing event in a MID Child form I don't know if the child
form is closing or the main form is closing.

Is there a way to tell?

Thank
 
Well, technically, if the main form is closing, the child form is
closing as well (since the child can't live outside of the main form). And
if just the child is closing, then the event would fire as well.

You can always attach to the closing event of the main form (from within
the child) in order to figure out when the main form is closing as opposed
to just your child form.

Hope this helps.
 
Back
Top