J
John
Hi,
I have an MDI application. The MDI children are instantiated when the
form loads and the user has the ability to show them or to hide them.
I trap the Closing event on the children and set e.Hide = true and
then call Hide() to hide the form.
The problem is when the application needs to exit. When the user
clicks the X on the MDI parent the Closing event is fired on all the
children *BEFORE* it's fired for the parent. The children cancel the
close so the application doesn't exit.
What's the right way to make this work?
Thanks,
John
I have an MDI application. The MDI children are instantiated when the
form loads and the user has the ability to show them or to hide them.
I trap the Closing event on the children and set e.Hide = true and
then call Hide() to hide the form.
The problem is when the application needs to exit. When the user
clicks the X on the MDI parent the Closing event is fired on all the
children *BEFORE* it's fired for the parent. The children cancel the
close so the application doesn't exit.
What's the right way to make this work?
Thanks,
John