Donate $1 now to see this question answered quickly
Sponsored questions offer a monetary incentive to answerers to produce quality responses.
Be intelligently matched with 5 likely answerers who will be alerted to help.
How can i get battery status?
Any help will really appreciated.
You can use SysInfo Component to get information about battery status.
Project->Component->Microsoft SysInfo Control
Add it to Form and use this following codes :
Private Sub Form_Load()
List1.AddItem "BatteryFullTime = " & _
List1.AddItem "BatteryLifeTime = " & _
List1.AddItem "BatteryLifePercent = " & _
Format$(SysInfo1.BatteryLifePercent / 100, _
Select Case SysInfo1.BatteryStatus
List1.AddItem "BatteryStatus = HIGH"
List1.AddItem "BatteryStatus = LOW"
List1.AddItem "BatteryStatus = CRITICAL"
List1.AddItem "BatteryStatus = NO BATTERY"
List1.AddItem "BatteryStatus = UNKNOWN"
Thank You Jx_Man
It's worked nicely :)