NetCF Power Status (PocketPC)
Purpose:
This class gets the Power Status from the Main and backup batteries of a PocketPC device (Tested to work on Symbol and Intermec brands, could function different on other devices.)
Usage:
Public BatteryStatus As New PowerStatus
BatteryStatus.ChangeValues(pbMain, pbBackup, lblMain, lblBackup)
ChangeValues receives four objects, two Progressbar (pbMain, pbBackup) and two labels (lblMain and lblBackup) and change the values on those objects to the current values of the batteries.
Or
intValueMain = BatteryStatus.GetPowerStatus("Main")
intValueBck = BatteryStatus.GetPowerStatus("Backup")
To get the respective values, that function returns an integer value.
Class:
PowerStatus.vb
To be able to use this you need the OpenNETCF.org Smart Device Framework
All my class do is wrap the OpenNetCF functionality on a simple to use function.

