Yes, you can use System.Environment.Exit(int exitCode) to exitit the application or Application.Exit() if it’s a Windows Forms app.
Yes, you can use System.Environment.Exit(int exitCode) to exitit the application or Application.Exit() if it’s a Windows Forms app.