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:
00292049
Views:
28
>Ok, my startup form is LOGON (This form has timers that fire) and the showwindow is "As Top-Level Form". LOGON form also calls another form which is In Top-Level Form called FRM_ADMIN. If I use LOGON form "As Top-Level Form" then sometimes my whole application terminates (on first try anyway). If I use LOGON form "In Top-Level Form" then when I quit my FRM_ADMIN (the cmdquit contains thisform.release()) the main vfp window doesn't termiate along with application. How would I have the code in my main.prg for two TL's? Where would I have the other Read Event (there is one already in my main.prg)? How would I start my second TL? Do I leave any forms "As Top-Level Form"? I know I ask to many questions but basically all I want is to leave my LOGON form in "In Top-Level Form" so that my program won't terminate abruptly, but the catch is my main vfp window won't close with quit button. Thanks for replying bruce.

Okay, the first thing I can tell you is that ON SHUTDOWN is ignored by top-levels. That's why the main screen isn't closing. You probably shouldn't try to mix TLs and the main screen like this, is what my general advice is. But you can try to issue the code in your ON SHUTDOWN directly in a TL or "in TL", also, just don't use the command ON SHUTDOWN. Other ideas:

Use something like a modal with _screen, or stick entirely with TLs, and try to fix the abrupt TL termination problem. It should be fixable, did you try one of the ideas I suggested earlier?
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Reply
Map
View

Click here to load this message in the networking platform