Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Halt the timer when another form is visible
Message
From
16/04/2008 08:52:04
 
 
To
16/04/2008 08:32:48
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01311041
Message ID:
01311045
Views:
18
This message has been marked as the solution to the initial question of the thread.
>I display a form on top of my main form when a timer on the main form fires. How can I stop the timer from firing when that second form is on top?


You can either disable the timer, yourTimer.Enabled=.F. in secondForm.Activate() and re-enable it in its .DeActivate().

Or at the beginning of your method yourTimer.Timer() try something like:
If WonTop('secondForm')
   Return
Endif
&& your timer code follows
hth
-Stefan
Previous
Reply
Map
View

Click here to load this message in the networking platform