2

Is there a way to get a notification (event) in my C# 2.0 application when the system wakes up from hibernation?

My application is running in system tray at the moment the system goes into hibernation.

Liviu Mandras
  • 6,540
  • 2
  • 41
  • 65

1 Answers1

6

Have a look at the SystemEvents.PowerModeChanged Event:

SystemEvents.PowerModeChanged Event

Occurs when the user suspends or resumes the system.

Community
  • 1
  • 1
dtb
  • 213,145
  • 36
  • 401
  • 431