|
-
Aug 1st, 2010, 10:26 PM
#5
Re: Difference Between "Me.Close" and "End" for Exit Function
 Originally Posted by jmcilhinney
Application.Exit exits the app no matter where it's called from, but all appropriate events are raised and all appropriate cleanup is performed. Application.Exit is generally what you should call when you want to exit the application, especially if you are not calling it from the main or last form. Note that calling Application.Exit does bypass the Closing and Closed events of your forms but FormClosing and FormClosed are raised.
Really? Unless MSDN is wrong...
CAUTION The Form.Closed and Form.Closing events are not raised when the Application.Exit method is called to exit your application. If you have validation code in either of these events that must be executed, you should call the Form.Close method for each open form individually before calling the Exit method.
Application.Exit Method, first MSDN link on a google search.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|