>When I ckick on the close button [x] on a form, it fires the form's queryunload event. What sequence of events is triggered by clicking on the close button of the main FoxPro application window (specifically when one or more forms is open).
>
>Bob
The best thing to do here is not guessing but adding ON SHUTDOWN routine where you will define the event sequence (in simplified case you can put there the same code as you have under Toolbar(Menu)/Exit option).
Edward Pikman
Independent Consultant