Join
the community
Sign-up
Ask a question »

VB.Net - Monitor the status of your laptop battery

May 2013


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.

VB.Net - Suivi de l'état batterie d'un portable
VB.Net - Suivi de l'état batterie d'un portable
By lermite222 on October 29, 2012
VB.Net - Monitorar o estado da bateria de um laptop
Original article published by lermite222. Translated by deri58. - Latest update by lermite222
This document entitled « VB.Net - Monitor the status of your laptop battery » from Kioskea (en.kioskea.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the license, as this note appears clearly.
Receive our newsletter

health.kioskea.net

VB6: Change the desktop picture and display mode
VB6/VBA - The CommonDialog control