Εμφάνιση αναρτήσεων με ετικέτα FormCloseQuery. Εμφάνιση όλων των αναρτήσεων
Εμφάνιση αναρτήσεων με ετικέτα FormCloseQuery. Εμφάνιση όλων των αναρτήσεων

Παρασκευή 11 Μαΐου 2012

How to detect (and prevent) system shutdown

When Windows are being shutdown or restarted, all runnig applications are closed of course. 
This can be dangerous, because you can lost your unsaved documents. But there is an easy way to detect, that Windows wants to shutdown and your application can do everything necessary to close properly.This “trick” is pretty simple.