Gil,
To my knowledge, there is no such event. The primary thread on which the
process is running is terminated by the operating system -- therefore, there
is no process left for any of the events you listed to fire on.
Now, the "End Process" button on the task manager is different from the "End
Task" button or what happens when you click "Shut Down". End Task and Shut
Down send a more friendly shut down message to the application, and you will
find that the standard events work just fine.
What is your purpose in interrupting the process kill? Depending on the
environment, you may be able to detect when the process has been terminated
by watching it with another process.
-Michael
"gil sh via .NET 247" wrote:
Hi,
I am looking for an event thet raises when the proccess is killed (for ex: Shotdown from the TaskManeger)
I have allready tried:
Form.Close
Form.Dispose
Application.Exit
Process.Exited
Finalize
I wrote a little program to chack it, Please add the event to the program of explane how to do it
RAR: http://uploaded.fresh.co.il/2004/08/09/960473.rar
ZIP: http://uploaded.fresh.co.il/2004/08/09/155273.zip
10x a lot, Gil
--------------------------------
From: gil sh
-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)
<Id>Wf8yqTR7Kk+ApddOymol9A==</Id>