Closing event not firing

  • Thread starter Thread starter John
  • Start date Start date
J

John

Hi

I have a main form that contains a panel which contains a child form. The
problem is that when the main form is closed by the user, the 'closing'
event for the child form is not triggered, which I need to do some cleanup
in the child form. What is the problem and is there a workaround?

Thanks

Regards
 
it could have something to do the way you load your child forms
i would suggest that you put a messagebox in each event that could be
activated when you close the form (closed, closing, deactivated,...)
anywhere you could put your code. this way you can track down if you could
put your code somewhere else.

hope it helps

eric
 
Back
Top