Use a Timer Control to wake up every minute and add a minute to a form-level variable and check if idle time has been exceeded, if it has then unload all forms. If any other control becomes active, its code must reset the accumulated time.
Code:
Dim frm as form
For Each frm in forms
if not (frm is Me) then unload frm
Next
Unload thisform ' put in this forms name
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.