Events in Windows Forms PopupMenu

The PopupMenu control supports the following events,

  • BeforePopup
  • Collapse
  • ParentBarItemChanged
  • Popup

BeforePopup

The BeforePopup event helps to provide the mouse position of the context menu. It gets fired before the popup menu is shown in display.

Collapse

The Collapse event will be invoked when popup menu is closed.

ParentBarItemChanged

The ParentBarItemChanged event will be invoked whenever the ParentBarItem properties like Text, Image, Font gets changed.

The Popup event will be invoked after menu is displayed.