J Jesper Jan 2, 2004 #1 Within a catch statement I would like to terminate the program (which is single threaded). How is this done. best regards Jesper.
Within a catch statement I would like to terminate the program (which is single threaded). How is this done. best regards Jesper.
M Mike Jan 2, 2004 #2 Application.Exit(); From the SDK: "Informs all message pumps that they must terminate, and then closes all application windows after the messages have been processed." -mike
Application.Exit(); From the SDK: "Informs all message pumps that they must terminate, and then closes all application windows after the messages have been processed." -mike
G Garrett Jan 3, 2004 #3 Jesper, From the SDK: " This method [Application.Exit()] does not force the application to exit." See: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/ frlrfsystemwindowsformsapplicationclassexittopic.asp You can find Environment.Exit( int ) at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/ frlrfSystemEnvironmentClassExitTopic.asp Have a look at it. Garrett
Jesper, From the SDK: " This method [Application.Exit()] does not force the application to exit." See: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/ frlrfsystemwindowsformsapplicationclassexittopic.asp You can find Environment.Exit( int ) at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/ frlrfSystemEnvironmentClassExitTopic.asp Have a look at it. Garrett