Can't find a "SysInfo Control" equivalent

Hi,

I really like the Visual Basic Express.

I am having a problem getting information about the system battery.

Something like this:
http://msdn.microsoft.com/library/default.asp url=/library/en-us/vbcon98/html/vbconsysinfoscenario3monitoringbatterypowerstatus.asp

would do. However I can't find a "SysInfo Control" to use in Visual Basic Express.
The only reference in the msdn  I can find is here:
http://msdn.microsoft.com/library/default.asp url=/library/en-us/vbcon98/html/vbconcontrolclass.asp

How would I load this

Also the "PowerBroadcastStatus Enumeration" seems to be related to the battery information but there seems to be no way to use it to actually read the current battery status:

http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfsystemserviceprocesspowerbroadcaststatusclasstopic.asp

Any help is greatly appreciated.



Answer this question

Can't find a "SysInfo Control" equivalent

  • Arild Fines

    The SysInfo Control was only for VB 6.0; in Visual Basic Express you can use the PowerStatus class instead. The following topic includes sample code for retrieving various values related to the battery, including line status, charge status, life remaining and more: http://msdn2.microsoft.com/en-us/library/17s150x3(en-US,VS.80).aspx

    Hth,
    Steve Hoag
    Visual Basic Express

  • DennisV

    Hi shoagMSFT,

    Thanks so much for that.

    Will report back with my progress.

  • Can't find a "SysInfo Control" equivalent