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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

exe flashes form, then quits

Status
Not open for further replies.

Raccoon

Programmer
Aug 18, 1999
92
0
0
US
I know this has been answered here before but I can't find it and am having amnesia. Simple form, build exe, when run the form flashes on screen and drops back out. I have tried changin mode/modeless, win on top, etc.. Created a calling prg with readevents to no avail. What am I forgetting?
 
HI
You are forgetting READ EVENTS and CLEAR EVENTS
In your main.prg.. after the starting Main menu or Main form.. add the code..
READ EVENTS

Also in the destroy ecent of the final exit form.. or exit place.. put the code..
CLEAR EVENTS

:)
ramani :)
(Subramanian.G),FoxAcc, ramani_g@yahoo.com
 
In you main program you have to use READ EVENTS right after you call your form:
Code:
do form myForm.scx
READ EVENTS

And conversely you would use CLEAR EVENTS when you exit your application
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top