>When i run my application and window gets open but when i close the window throught cross at the top it gives me "Visual FoxPro cannot Quit"
>
>what to do.
>
>Thank
>
>Mohammed
Take a look at ON SHUTDOWN in the help.
This is used to tell VFP what to do when the user tries to quit the app.