VB.Net - Monitor the status of your laptop battery
The code demonstrates the use of:
- A class module
- The GetSystemPowerStatus API modified in VB.net to eliminate the "Access Violation Exception" error.
- Using System.Windows.Forms.Timer ()
- System.Windows.Forms.Timer()
- Transfer of a class/form structure
- WithEvents/Event/RaiseEvent
Note: all PC ill return the all information.
See also
Knowledge communities.
Original article published by
lermite222. Translated by
deri58. -
Latest update by lermite222