Hello all,
I would like to incorporate into my program a routine such that if a user stays for some time without pressing a key, then s/he is logged out of the system.
I would be very grateful if I could be assisted in this way.
Thanks
Printable View
Hello all,
I would like to incorporate into my program a routine such that if a user stays for some time without pressing a key, then s/he is logged out of the system.
I would be very grateful if I could be assisted in this way.
Thanks
Not sure if you can do it a single exe since VB6 is single threaded. Because of this, timer controls can be problem. I would setup some kind of timer and every time it fires, check a keypress dirty flag. If that flag is not set, log them off. It it is set, clear it.
This thread asks (and has answered) a similar question and may be of some use to you, Owoahene.