PowerQuerySuspend Event

       

Occurs when system power is about to be suspended.

Syntax

Private Sub object_PowerQuerySuspend([index As Integer,] cancel As Boolean)

The PowerQuerySuspend 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.
cancel A Boolean value that indicates whether or not the system will be prevented from entering suspended mode, as described in Settings.

Settings

The settings for cancel are:

Setting Description
True Prevents the system from entering suspended mode.
False (Default) Allows the system to enter suspended mode.