You can't guarantee that no other code wil be executed after a call to
App.Exit. The best way to stop the app is to close its main form - App.Exit
is sort of an emergency approach. You may want to set some global flag, to
indicate that the app is terminating, and based on it not to continue
certain operations.
--
Alex Feinman
---
Visit
http://www.opennetcf.org
"PCH" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I have a class that is loaded from the main form. And if certain req's are
> met, it needs to close the entire program. I am using the
> Application.Exit
> command, but it seems to ignore it! it keeps executing other code after
> its
> been called.
>
> Is there any way to force the program to close down?
>
>