Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Closing a form after a period of inactivity
Message
From
18/03/2004 19:30:43
 
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00886289
Message ID:
00887740
Views:
23
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!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform