Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Closing a form after a period of inactivity
Message
De
18/03/2004 19:30:43
 
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00886289
Message ID:
00887740
Vues:
24
Hi!

Use the Timer Control, and set the Interval to a certain amount of time,(the one you might need to) and after that period of time, check if there has been any activity with the mouse move event or the keypress event on the form, call to a boolean Variable and assign the false value if there has not been any activity, that way you can close the app without the problem of thinking that you might loose some info, or maybe the timer is just cutting the app when the user is about to start over again.

dont forget to set the timer again to start counting, everytime you execute this, ok?

if you need some code, I can send you an snnipet of it, just let me know fellow!

I hope this can help you,

cheers!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform