Occurs when the hardware profile on the system has changed.
Syntax
Private Sub object_ConfigChanged([index As Integer,] ByVal oldconfignum As Long, ByVal newconfignum As Long)
The ConfigChanged 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. |
oldconfignum | The key name in the Windows registry for the old system configuration. |
newconfignum | The key name in the Windows registry for the new system configuration. |
Remarks
For docking and undocking a portable computer with a docking station, this event occurs after the system resumes operation.