OnMenuBar Event

Fires when the MenuBar property is changed.

Syntax

  Private Sub object_OnMenuBar( _
  ByVal MenuBar As Boolean)

Parameters

  • MenuBar
    A Boolean value that specifies whether the menu bar is shown.

    • true
      Menu bar is shown.
    • false
      Menu bar is hidden.

Error Codes

No return value.

Remarks

The WebBrowser object ignores this event.

When using scripting in an HTML page, this event corresponds to the MenuBar property passed in the open method.

Applies To

InternetExplorer