>Hi, in VFP7, can someone point me to the right direction re capturing the user clicking the close box or hitting close from the window command menu.
>
>I can't seem to figure out how to capture that event - do I have to manually check for a click or double click event at the form level?
>
>TIA David
As Jos and Plinio have pointed out, use the QueryUnload method for forms. For the main VFP window, see the help for ON SHUTDOWN.