OnMenuBar EventOnMenuBar Event*
*Contents  *Index  *Topic Contents
*Previous Topic: OnFullScreen Event
*Next Topic: OnQuit Event

OnMenuBar Event

Description

Occurs when the MenuBar property is changed.

Syntax

Private Sub object_OnMenuBar(ByVal MenuBar As Boolean)

ValueDescription
objectAn object expression that evaluates to an object in the Applies To list.
MenuBarIf 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 menu bar property passed in the window.open method.

Applies To

InternetExplorer, WebBrowser


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.