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

OnMenuBar Event


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


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.