Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Exiting Program
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00291561
Message ID:
00291991
Views:
23
>The problem I face is FormA has a timer that fires regularly, and sometimes my program terminates without a reason if my form is set to showwindow state of 2.
>I use showwindow = 1 and my program continues (allows me to goto other forms), but then my main vfp window doesn't close when I exit my program with a command button. Its like catch 22, I don't know how to terminate the vfp main window while in showwindow = 1, and I can't use showwindow = 2 because my program sometimes terminates unpredictably. I even put _screen.release in my quit button while showwindow = 1, but it makes no difference the vfp main window still stays up. Any solutions????

I haven't used _screen for a couple years now, so not much help on that. As to why the TL was terminating sometimes, you may need to place a control that can get focus on it to keep it open, like a commandbutton. You can hide it off the visible screen so it won't look funny.

You can even hide the entire TL off the screen, and make the Child a Desktop, that's another nice way to do certain things...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform