QueryChangeConfig Event

       

Occurs on a request to change the current hardware profile, either through the operating system user interface or by requesting suspend mode prior to docking or undocking the system.

Syntax

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

The QueryChangeConfig 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, as described in Settings.

Settings

The settings for cancel are:

Setting Description
True Prevents the system from changing the hardware profile.
False (Default) Allows the system to change the hardware profile.