469,898 Members | 1,605 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,898 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

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
1 1986
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.

Similar topics

5 posts views Thread by Ron L | last post: by
1 post views Thread by Chris Bruce | last post: by
6 posts views Thread by Gary Miller | last post: by
6 posts views Thread by **Developer** | last post: by
14 posts views Thread by =?Utf-8?B?UHVjY2E=?= | last post: by
19 posts views Thread by zacks | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.