In C# i using process.Kill() kill a process, at the same time in killed application how to detect this event?
BTW: Application.ApplicationExit event has not been fired!
if it's a winform, you can capture the event FormClosing and check the CloseReason:
FormClosing
CloseReason
None WindowsShutDown MdiFormClosing UserClosing TaskManagerClosing FormOwnerClosing ApplicationExitCall
2.1m questions
2.1m answers
60 comments
57.0k users