-
exiting program
i use Me.Close(); to terminate the program but it does not work, this will be caled when the close button is pressed, but the form diapers, but the program is still running in the task manager and i have to use the ide to stop it,
what is the proper way to close the app, or how can i fix this??
-
>Me.Close();
This is VB code. Anyway, if you set your button as a dialogresult in the form editor, the closing behaviour should be automatically added.
-
In C#, if your program consists of 1 form and you code myFormName.Close() the program will terminate entirely.
-
To close the entire application, you need to use "Application.Exit();". This is for a Windows Form application.
-