>if oApp.quitflag=.f. > oApp.quitflag=.t. >else > do quitapp && system procedure to close application (destroy all forms,etc) >endif >return >>2. Timer will fire this code e.g. every 10 minutes and you should add to various places if your application (e.g Form.MouseMove events) following line: