In most real-world scenerios your applications should be prepared for graceful terminations, if possible, in all situations. In
other words, you want your app to have a chance to save settings, perform proper clean-up, etc. before exiting.
I don't believe that Application.Exit() is an immediate termination, but instead a graceful one. This means that your Form's
Closing event will be fired.
Your application should be able to handle termination while in the middle of long processes by periodically checking a state
variable such as "if (closing != true)" before continuing. This way, your application will not freeze when closing because you have
a process that is being stubborn.
hope it helps,
--
Dave Sexton
dave@www..jwaonline..com
-----------------------------------------------------------------------
"Christopher Weaver" <we*****@nospamverizon.net> wrote in message news:ei**************@TK2MSFTNGP10.phx.gbl...
Application.Exit() isn't having the effect that I would like. I thought it would cause the app to terminate regardless of what
was going on. What's the best scenario for shutting down an app?