Skip to content

ToolBarContextMenu Event

Description

Occurs when the CommandBars default context menu is displayed.

Syntax

Public Event ToolBarContextMenu( _
    ByVal ToolBar As CommandBar, _
    ByVal ContextMenu As CommandBar _
)

Parameters

  • ToolBar
    Reference to the Toolbar that was right-clicked to display the default context menu.

  • ContextMenu
    Reference to the popup menu that will be displayed. With this reference, you can remove all the controls and add your own.

Remarks

The default context menu is the menu that is displayed when any toolbar or open space on the command bar is right-clicked. The ToolBarContextMenu event allows you to override the default context menu with your own.

See Also


See Also


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.