You need to put VFP into a wait tate when you run the EXE. In your startup program just add
immediately after the command to run the form.
Impoirtant: In the exit of your menu, or the form if you don't use a menu, ensure you have a CLEAR EVENTS to cancel the wait state and allow your exe to shut down.
You will find all the details in the Help File if you are unsure of this.