Click to return to the Reusing Browser Technology home page    
BeforeNavigate2 Event     DocumentComplete Event     WebBrowser Control Events    
Web Workshop  |  Reusing Browser Technology

CommandStateChange Event


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


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.