New to Foxpro and have an application using a form. When I run the program
from within foxpro the form comes up and works fine but when I create an .exe
file the program excutes but the form doesn't come up for any user input.
Don't know where to go from here.

Re: Form not coming up in exe by Mark

Mark
Tue Jan 04 19:19:59 CST 2005

See READ EVENTS, CLEAR EVENTS, and ON SHUTDOWN in the VFP Help file.
Basically, after you DO FORM MyMainForm, you need to issue a READ EVENTS so
VFP stops code execution until someone does something with your form. In
your main form, put a CLEAR EVENTS in the form's Unload. If you want the
close button to work on your app, you will need to use ON SHUTDOWN CLEAR
EVENTS or ON SHUTDOWN DoMyShutdownProc where this procedure includes the
CLEAR EVENTS. If this is not a one form app, you should not put the CLEAR
EVENTS in the form as I suggested above. Use the ON SHUTDOWN option. If you
are using a top-level form, then put either a call to a shutdown proc or use
CLEAR EVENTS in the top-level form's unload.

"JSheets" <JSheets@discussions.microsoft.com> wrote in message
news:7B162B0F-40AF-4AB5-8D43-3967733CED89@microsoft.com...
> New to Foxpro and have an application using a form. When I run the program
> from within foxpro the form comes up and works fine but when I create an
.exe
> file the program excutes but the form doesn't come up for any user input.
> Don't know where to go from here.



RE: Form not coming up in exe by Muchiri

Muchiri
Wed Jan 05 05:51:08 CST 2005

Try creating the app using the application wizard in
Tools>Wizards>Applications. Then try and study main.prg created by the
wizard. With time you will be able to create and or alter the prg as
neccesary.

Muchiri

"JSheets" wrote:

> New to Foxpro and have an application using a form. When I run the program
> from within foxpro the form comes up and works fine but when I create an .exe
> file the program excutes but the form doesn't come up for any user input.
> Don't know where to go from here.

Re: Form not coming up in exe by Leemi

Leemi
Wed Jan 05 08:34:38 CST 2005

Hi JSheets:

Along with Mark's comments, see if you have a Config.fpw file that contains
a Scren=off command:

http://support.microsoft.com/default.aspx?scid=KB;EN-US;266377

I hope this helps.

This posting is provided "AS IS" with no warranties, and confers no rights.

Sincerely,
Microsoft FoxPro Technical Support
Lee Mitchell

Keep an eye on the product lifecycle for Visual FoxPro here:
http://support.microsoft.com/default.aspx?id=fh;[ln];lifeprodv
- VFP5 Mainstream Support retired June 30th, 2003
- VFP6 Mainstream Support retired Sept. 30th, 2003


>See READ EVENTS, CLEAR EVENTS, and ON SHUTDOWN in the VFP Help file.
>Basically, after you DO FORM MyMainForm, you need to issue a READ EVENTS so
>VFP stops code execution until someone does something with your form. In
>your main form, put a CLEAR EVENTS in the form's Unload. If you want the
>close button to work on your app, you will need to use ON SHUTDOWN CLEAR
>EVENTS or ON SHUTDOWN DoMyShutdownProc where this procedure includes the
>CLEAR EVENTS. If this is not a one form app, you should not put the CLEAR
>EVENTS in the form as I suggested above. Use the ON SHUTDOWN option. If you
>are using a top-level form, then put either a call to a shutdown proc or
use
>CLEAR EVENTS in the top-level form's unload.

>"JSheets" <JSheets@discussions.microsoft.com> wrote in message
>news:7B162B0F-40AF-4AB5-8D43-3967733CED89@microsoft.com...
> New to Foxpro and have an application using a form. When I run the program
> from within foxpro the form comes up and works fine but when I create an
exe
> file the program excutes but the form doesn't come up for any user input.
> Don't know where to go from here.