Occurs when the enabled state of a command changes.
Syntax
Private Sub object_CommandStateChange (ByVal Command As Long, ByVal Enable As Boolean)
Parameters
- object
- An object expression that evaluates to an object in the Applies To list.
- Command
- A long integer specifying the identifier of the command that changed. It can be one of the following constants or values.
CSC_UPDATECOMMANDS -1 The enabled state of a toolbar button may have changed; the Enable parameter should be ignored. CSC_NAVIGATEFORWARD 1 The enabled state of the Forward button has changed. CSC_NAVIGATEBACK 3 The enabled state of the Back button has changed.
- Enable
- A Boolean value that is TRUE if the command is enabled, or FALSE if not.
Applies To
InternetExplorer, WebBrowser