Skip to main content

Another way you can do this:

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

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

Note: Just care about an application that has savebe careful not to lose unsaved data in files from another thread.

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.

Another way you can do this:

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

This will force kill your application. It always works, even in a multi-threaded application.

Note: Just be careful not to lose unsaved data in another thread.

Active reading - but more work is definitely needed.
Source Link
Peter Mortensen
  • 31.4k
  • 22
  • 110
  • 134

Another way you can do this:

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

thisThis will force kill your appapplication in process always works in a multi thread-threaded application.

Note: justJust care about an application that havehas save data in files from another thread.

Another way you can do this:

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

this will force kill your app in process always works in multi thread application.

Note: just care about an application that have save data in files from another thread.

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.

Source Link
Ali Yousefi
  • 2.9k
  • 2
  • 38
  • 53

Another way you can do this:

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

this will force kill your app in process always works in multi thread application.

Note: just care about an application that have save data in files from another thread.