Re: Nice fading in and out form effect
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?
Re: Nice fading in and out form effect
Add Application.Exit or Environment.Exit will force the application to close.
Re: Nice fading in and out form effect
Quote:
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.
Re: Nice fading in and out form effect
Quote:
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...