Created
November 14, 2023 15:39
-
-
Save felipeabajo/966bcb46737f564ecc615206e13fb781 to your computer and use it in GitHub Desktop.
Snippets for exiting WinForms applications
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| this.Close(); //If called in the main form, it closes the app too. | |
| Application.Exit(); | |
| System.Diagnostics.Process.GetCurrentProcess().Kill(); // Causes an abnormal process termination and should only used when necessary. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment