https://stackoverflow.com/questions/12977924/how-to-properly-exit-a-c-sharp-application
I would either one of the following:
Application.Exit();
for a winform or
Environment.Exit(0);
https://stackoverflow.com/questions/12977924/how-to-properly-exit-a-c-sharp-application
I would either one of the following:
Application.Exit();
for a winform or
Environment.Exit(0);