I am working on VB.NET windows mobile application, in visual studio 2005. I want to check my device battery charge so I given code my form load like this:
Imports System.IO
Imports System.Data
Imports System.Drawing.Imaging
Imports System.Configuration
Imports Microsoft.Win32
Imports System.Windows.Forms
Imports Microsoft.VisualBasic
Imports System
Dim power As SystemInformation.PowerStatus = SystemInformation.PowerStatus
Dim percent As Single = power.BatteryLifePercent
MsgBox("Percent battery life remaining: " & percent * 100)
But showing error
SystemInformation.PowerStatus is not defined.
Any one tell me how I can resolve this issue