General information
Category:
Forms & Form designer
Ok, let me get this straight, actually let me tell you what I have. First I have a main.prg that looks like this:
* main.prg
on shutdown do myshutdown
do form LOGON
read event
on shutdown
my shutdown looks like this:
*myshutdown
clos all
clea all
capslock(.f.)
clear events
quit
my cmdbutton on LOGON form:
*cmd_do_admin
.hide
do form frm_admin
.cmdcancel.click()
my cmdquitbutton on LOGON form:
thisform.release()
_screen.release()
clea event
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.
thanks
Nick Patel
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only