The following code does not exit the application. How can I exit the application and make sure all the running threads are closed?
foreach (Form form in Appl
You can try the following code:
Environment.Exit(Environment.ExitCode);