Make sure you have clear events in your destroy event of your form. Then after read event in your start program put quit on the next line. The clear event will release the read event and next run the quit when the form is destroyed (clicking the little x up top).
-Eric L Scott
>When I run a application that build into form *.exe and it includes the command “read events” in main program). When I want to exit my application, I click the “close button” of screen foxpro (it on top-right of screen VFP). Then I receive the message : “Cannot quit Visual Foxpro”.
>How do I do to quit my application by click “close” button of screen foxpro.
>Please teach me !
>Thank
>Canh
-Eric