difference between MyBase.Closing and MyBase.FormClosing

A

Academic

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
 
C

Chris Dunaway

Academic said:
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
 
A

Academic

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top