02-11-2009 07:30 PM
Hi All,
I would like to know is there any way to detect pcs shut down event.
I have an application that have to be run all the time.I would like to know is there any way to detect the pcs shutdown and if so,i want to save the contents before the system shut down...
Thanks in advance...
02-11-2009 10:38 PM
If your application is event driven, yes. The Application Instance Close or Application Instance Close? events will fire when a shutdown occurs. You can use them to implement the state saving functionality.
Mike..
02-11-2009 11:05 PM
Hi..
Thank u for the reply...
I didnt get u completely..Can u pls send me a small example to depict this...
Save the contents before shut down
Thanks again...