Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Runtime exe not displaying form

Status
Not open for further replies.

juiceharp

Programmer
Nov 16, 2001
6
US
When creating new projects and building an executable, I no longer can get my main form, or any form to display. The program runs in background, but will not display or function.

Help, do be afraid to state the obvious. I've looked at everything, the program is not complicated, but I can't get it to work. Other programs I created in the past work, but nothing new. What am I missing. Help soon,

Thanks
 
make sure you have read events in your main program

do Form MainForm
Read events


and when you need to close the project:'

Clear events Please let me know if this helped you :)

Tekno
Wireless Toyz
Ypsilanti, Michigan
 
That's basically what is in my program. I noticed this happening in a larger application, so I created a simple program, one that opens a form, and offers an exit command.

I've got the commands you suggest,but nothing is showing. I've made sure that the application builder, says it's a top level application. It will run from within vfp, but not from outside it.

Thanks for the reply.
 
also, make sure that where the command resides (read events) is in set to be as main..

for example
if you have a main.prg and a form called 'MyForm'

in your main.prg <--- set this as your Main (should be bold)

do form MyForm
read events

in the exit button of the form

thisform.release
clear events


Please let me know if this helped you :)

Tekno
Wireless Toyz
Ypsilanti, Michigan
 
Well, too many long nights I guess. I found that the form's property ShowWindow setting was set to default - it needs to be 2 - As Top Level Form.

Hope this reminds me to check the simple things, and save worry and frustration.

Thanks for the response.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top