Occurs when the MenuBar property is changed.
Syntax
Private Sub object_OnMenuBar(ByVal MenuBar As Boolean)
Parameters
- object
- An object expression that evaluates to an object in the Applies To list.
- MenuBar
- If TRUE, the menu bar is shown; if FALSE, the menu bar is hidden.
Remarks
An application hosting the WebBrowser control should respond to this event by hiding or showing the menu bar, if applicable. When using scripting in an HTML page, this event corresponds to the MenuBar property passed in the window.open method.
Applies To
InternetExplorer, WebBrowser