application.exit doesn't work

  • Thread starter Thread starter Tommy
  • Start date Start date
T

Tommy

When I call application.exit my app does not end.

I am calling it from within a class that I created that set's up my menu. A
menu item calls a form and the form accepts a password. The application.exit
is called from the button if the correct pass is validated.

Any idea what I am doing wrong or how to force the app to end?

Thanks in advance.

Tommy
 
Hi Tommy,

I know you wanted us to disregard but I wanted to point out that using
Application.Exit is dangerous. See the following FAQ entry for a detailed
explanation:

4.11. What is the proper method to close a form: Application.Exit or
Form.Close?
http://msdn.microsoft.com/mobility/prodtechinfo/devtools/netcf/FAQ/default.aspx#4.11

--
Geoff Schwab
Program Manager
Excell Data Corporation
http://msdn.com/mobility
http://msdn.microsoft.com/mobility/prodtechinfo/devtools/netcf/FAQ/default.aspx

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top