Possible Duplicate:
detect power state change
In my c# windows form application I want to reset a counter variable upon system wake up from hibernate/sleep. Is there any methods or events exists for detecting this?
Possible Duplicate:
detect power state change
In my c# windows form application I want to reset a counter variable upon system wake up from hibernate/sleep. Is there any methods or events exists for detecting this?
The .NET Framework provides a PowerModeChanged event that occurs whenever there is a change in power status, such as when a user suspends or resumes the operating system.