PowerStatusChanged Event

       

Occurs when there is a change in the power status of the system.

Syntax

Private Sub object_PowerStatusChanged([index As Integer])

The PowerStatusChanged event syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
index A numeric expression that evaluates to the index of a control if it is in a control array.

Remarks

The following changes in the system's power status triggers the PowerStatusChanged event: