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

difference between MyBase.Closing and MyBase.FormClosing

P: n/a
I read the Help and some of the many Google hits I got but can't find out
the difference between MyBase.Closing and MyBase.FormClosing
Can anyone tell me?


Thanks
Nov 6 '06 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Academic wrote:
I read the Help and some of the many Google hits I got but can't find out
the difference between MyBase.Closing and MyBase.FormClosing
Can anyone tell me?
The Closing event is deprecated in .Net 2.0 and is provided for
backwards compatibility. You should use FormClosing from now on.
>From the docs:
"The Closing event is obsolete in the .NET Framework version 2.0; use
the FormClosing event instead."
Chris

Nov 6 '06 #2

P: n/a
I was wondering if anyone knows what is different
"Chris Dunaway" <du******@gmail.comwrote in message
news:11*********************@f16g2000cwb.googlegro ups.com...
Academic wrote:
>I read the Help and some of the many Google hits I got but can't find out
the difference between MyBase.Closing and MyBase.FormClosing
Can anyone tell me?

The Closing event is deprecated in .Net 2.0 and is provided for
backwards compatibility. You should use FormClosing from now on.
>>From the docs:

"The Closing event is obsolete in the .NET Framework version 2.0; use
the FormClosing event instead."
Chris

Nov 6 '06 #3

P: n/a
Academic,
In addition to the other comments.

FormClosing as an expanded EventArgs that include information about why the
form is closing.
http://msdn2.microsoft.com/en-us/lib...gs(VS.80).aspx

Where as Closing simply has a CancelEventArgs
http://msdn2.microsoft.com/en-us/lib...gs(VS.80).aspx

--
Hope this helps
Jay B. Harlow
..NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley - http://www.tsbradley.net
" Academic" <ac************@a-znet.comwrote in message
news:e1****************@TK2MSFTNGP03.phx.gbl...
>I read the Help and some of the many Google hits I got but can't find out
the difference between MyBase.Closing and MyBase.FormClosing
Can anyone tell me?


Thanks
Nov 6 '06 #4

P: n/a
Thanks, I read the Help but didn't dig enough to find the CloseReason
Enumeration

Jay, I wish you'd look at my other post. I find that if I have a MDI form
open, and also a non-MDI non-MDI-Child Form open and close the app (by
clicking the X button) the non-MDI non-MDI-Child Form does not get a
FormClosing event.
Thanks again

PS By "non-MDI non-MDI-Child Form " I mean a regular run-of-the-mill form

"Jay B. Harlow" <Ja************@tsbradley.netwrote in message
news:7C**********************************@microsof t.com...
Academic,
In addition to the other comments.

FormClosing as an expanded EventArgs that include information about why
the form is closing.
http://msdn2.microsoft.com/en-us/lib...gs(VS.80).aspx

Where as Closing simply has a CancelEventArgs
http://msdn2.microsoft.com/en-us/lib...gs(VS.80).aspx

--
Hope this helps
Jay B. Harlow
.NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley - http://www.tsbradley.net
" Academic" <ac************@a-znet.comwrote in message
news:e1****************@TK2MSFTNGP03.phx.gbl...
>>I read the Help and some of the many Google hits I got but can't find out
the difference between MyBase.Closing and MyBase.FormClosing
Can anyone tell me?


Thanks

Nov 7 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.