tags:

views:

251

answers:

4

I would like to detect the laptop battery level so that I can warn of low battery level using my application is it possible in .net ? Thanks in advance.

+6  A: 

Have a look at

SystemInformation.PowerStatus

astander
+3  A: 

Here is code you can pretty much cut and paste: Hangout with Sharp - C# - Battery Status Monitor

Paul Sasik
+4  A: 

Very first hit on google was this article. it appears to be what you are looking for. There is an even simpler version on Coding4Fun.

GrayWizardx
+4  A: 

SystemInformation.PowerStatus should help you.

Giorgi