Skip to main content
2 of 3
Active reading - but more work is definitely needed.
Peter Mortensen
  • 31.4k
  • 22
  • 110
  • 134

Another way you can do this:

System.Diagnostics.Process.GetCurrentProcess().Kill(); 

This will force kill your application in process always works in a multi-threaded application.

Note: Just care about an application that has save data in files from another thread.

Ali Yousefi
  • 2.9k
  • 2
  • 38
  • 53