>Would I be able to link the close button in the main window wth the exit command button in my main form. When I run my app and attempt to close it from the main window I get a message box saying "Cannot Quit Visuala FoxPro"?
Take a look at the ON SHUTDOWN command.
This allows you to run some code when the main VFP window close box is clicked.