>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"?
Perry,
What you want is the ON SHUTDOWN command. It's in the help file. Basically you would make your Exit button's click call code to exit the app and use the same code as the ON SHUTDOWN routine.