Checking my laptop battery life by VB.NET

vb.net

Solution

You can Try This Code

Dim power As SystemInformation.PowerStatus = SystemInformation.PowerStatus
Dim percent As Single = power.BatteryLifePercent
MsgBox("Percent battery life remaining: " & percent * 100)

Problem

In my VB.Net project with framework 2.0, i need to get the current buttery life of laptop or notebook by coding. It is possible to get the current battery status information?

Original source