Normal method //Signal this app to close System.Windows.Forms.Application.Exit(); If you need to forcibly close (Where Application.Exit() doesn’t work for some reason) //Forcibly close the app Environment.Exit(0);