I have a database whose users routinely leave running after hours. I would like to be able to close the database after an hour of inactivity regardless of which form the user has open. I have tried to use the timer and close down after x minutes. I set this property to all my forms but some forms when not in use are just hidden in the background so they load quicker this caused them to continue counting down even when not in use. How can I make the current form only count down and shut off the database after X minutes?