By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,267 Members | 1,861 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,267 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Nov 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

" **Developer**" <RE*************@a-znet.com> wrote in message
news:O2**************@TK2MSFTNGP09.phx.gbl...
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

Nov 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.