Hi,
How to detect when the laptop is running on batteries (or AC) in .NET?
Thanks, Mahesh
Hi,
How to detect when the laptop is running on batteries (or AC) in .NET?
Thanks, Mahesh
See here http://stackoverflow.com/questions/1973117/can-we-detect-the-laptop-battery-level-using-net
For Vista and up, you can use WindowsAPICodecPack (PowerManager.PowerSourceChanged)