You'll have to upgrade to VFP9 which supports binding to Windows Messages (events). There's example in VFP9 Solution Samples how to do that.
>
>I've been asked by some "chief users" to not allow VFP quit until their users fill some required data.
>That's no problem, I thought.
>
>But then , they asked me to avoid windows shutdown until the data is entered.
>
>I really don't know how to interrupt or cancel the shutdown process.
>I've been playing with ON SHUTDOWN event for a while, but I can not make it work as desired.
>
>What I want is (in this order if possible):
>1) Cancel shutdown and continue working as if nothing happened
>or
>2) Interrupt shutdown and open a form for the user to fill the data (keep asking for the data until entered)
>
>Thank you
>Fabian
--sb--