how to catch the event when the particular application process is being suspended using task manager?
<p>I am developing a simple application where in we have predefined quotas on usage for each user on the system..
and if the quota is up..the system should logoff of the user account..
this will happen if the application is allowed to run..
but if the user is closing the application on his own ..the app should automaticaly logoff the account..</p>

<p>i did exactly that in writing forced logoff code in form-closing event..
but if we are closing the app/process using the taskmanager..
the form closing event is not being called.
and so the user is able to continue even if his quota of time is up..
can anybody helpme out with this..</p>
