|
-
Aug 20th, 2009, 07:55 AM
#39
Re: Nice fading in and out form effect
 Originally Posted by .NetNinja
Add Application.Exit or Environment.Exit will force the application to close.
He really should expose a CloseParent() method on the main form that all the child windows can use to close the whole app. By using the MainForm's Close method it allows the FormClosing events to still fire, which is where any of his clean up code should be. If he uses Application.Exit or Environment.Exit that's a hard exit, app's terminated on that line, no FormClosing, FormClosed, ApplicationClosing, ApplicationClosed events fire.
Last edited by JuggaloBrotha; Aug 20th, 2009 at 02:20 PM.
Reason: Typo's
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
|