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
1.4m articles
1.4m replys
5 comments
57.0k users