Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Halt the timer when another form is visible
Message
 
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:
01311055
Views:
16
>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?

How do you call child form?
You could do:

1. Add new property in the main form named ChildForm and Check ASSIGN method in New Property dialog.
2. When you need to call the Child form do:
DO FORM .... NAME thisform.ChildForm LINKED
3. In ChildForm_Assign event:
LPARAMETERS leNewVal
thisform.Timer.Enabled = ISNULL(leNewVal)
(not tested)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform