Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Timer with Forms
Message
 
 
À
20/02/2009 07:09:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01383044
Message ID:
01383175
Vues:
56
Christopher,

You must have some other environmental factor going on...

create form timer1

drop a timer on it
set interval = 1000
put this code in the timer event
thisform.BackColor = rgb( rand()*255, rand()*255, rand()*255 )
add a command button to the form

set the click to
do form timer1
then run the form.. it'll sit there flashing backgrounds..

click the button

move the second form off the top of the first and you'll see two independently flashing forms

>I have one form that serves as the main page of the application. I have a timer on that form that fires every 15 secs to check a table to see if a particular condition exists and refresh the items on the form. The form also contains a button that allows a user to open another form that covers the first form to perform a nonrelated task.
>
>The timer works perfectly, and executes every 15 seconds, as long as the form that it is contained within is the form of focus. When the other form (that covers the first) has the focus, the timer is not 'executing' in the background, until I close that second form.
>
>Probably a really basic question, but how do I get that timer to do its thing even when the form in which it is placed is not the active form or form of focus?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform