4
There’s no way my app knows it’s being terminated by the task manager?
If the user is going to finish my application by task manager, my application detects this completion and performs some tasks before finishing?
How can I do that?
My application is running straight and is in WPF.
This only works when the termination is done in a specific way. And only in Winforms, not in WPF.
– Maniero
For me it does not work because my application is in wpf, and in wpf the event is
CancelEventArgs
– MeuChapeu