|
-
Aug 19th, 2009, 12:43 PM
#41
Member
Re: Nice fading in and out form effect
That works, thank you
-
Aug 19th, 2009, 03:15 PM
#42
Member
Re: Nice fading in and out form effect
I know im really been a pain in the ass now but how would i close all forms from the click of one button?
-
Aug 19th, 2009, 03:41 PM
#43
Hyperactive Member
Re: Nice fading in and out form effect
Add Application.Exit or Environment.Exit will force the application to close.
"Don't try to be a great man. Just be a man and let history make its own judgement."
-
Aug 20th, 2009, 07:55 AM
#44
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
-
Aug 20th, 2009, 12:59 PM
#45
Hyperactive Member
Re: Nice fading in and out form effect
 Originally Posted by JuggaloBrotha
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.Exist or Environment.Ext that's a hard exit, app's terminated on that line, no FormClosing, FormClosed, ApplicationClosing, ApplicationClosed events fire.
Good point...
"Don't try to be a great man. Just be a man and let history make its own judgement."
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
|