>I am write a VFP application and build to an EXE.
>When I run it, and try to quit it by clicking the 'x' button on the top-right corner or double click the control menu... It prompt me a message that "Can not quit Visual Foxpro".
>What the problems??
>How to solve it??
>
Rat,
Research the ON SHUTDOWN command in the help file and documentation. It is exactly what you need.