>Hello,
>
>I would like to close automatically a VFP application after n minutes.
>
>Where need I place the timer :
>a)in each forms
>b) in the menu<
>c) at read level
>
>I don't know !
>
>hubert
I have done this by making a timer class, and instantiating it in the main program.
You know only have to record activity.
I don't know if there are good alternatives to do that, but you can have a method in the timer class, that resets the timer to zero after activity is seen.
You then have to call the method everywhere you place code.
If you call a messagebox in your app, the timer control doesn't fire.
In VFP7 you can workaround this by using a timeout on the messageboxes.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement