How to Check Battery Level using vb6

Description:This code shows how to check the battery level of computer (Only if a battery is present). Before using this code you should add Microsoft sysinfo control and a progress bar control to your form. Also add a timer for updating your battery status instantly.

Controls:Timer1 (timer), SysInfo1 (sysinfo control), ProgressBar1 (Progress bar), Text1 (Textbox)


Leave a Reply

Your email address will not be published. Required fields are marked *