>I see, Nadya ... it's a good idea, I've even run into "Shutting down Windows from inside VFP app" while trying to find an answer around here.
>
>One little question, if you don't mind ... is there a way to know if the app shutdown was caused by Windows shutdown ?
>
That's the hardest part, I think :) I haven't researched this problem yet, though. The simple (but may be not since you're in the framework) way would be to know, when a USER closes the application and assume, that all other cases are caused by Windows Shutdown.
That's the first idea which comes to mind, see, if you can work from it, otherwise I'll run a research on the problem...
If it's not broken, fix it until it is.
My Blog