Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Auto Hibernate Function, how to??

Status
Not open for further replies.

aaahhhrrggghhhh

Programmer
Apr 5, 2002
61
IE
Hello everyone.

I am looking to develop a database solution in VB .NET. I need to create an autohibernate function. This function will send the application to the system tray (I have already developed this bit), when the database has remained untouched for a specified period of time. I need some way of detecting when the system hasn't been touched (or clicked, or anything) for say, 5 minutes. If this happens then the system goes into hibernation (just include *hibernation code here* in the text for this section if poss.).

I am concieving that maybe a timer on the form which goes off after allotted time (eg 5 mins), then using the timer event to trigger the hibernation, but how do I tell if the user has clicked the database or done anything.

In much anticipation,
Nik
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top