Adds an event handler for the "popup" event notification. The popup event is fired when the context menu is about to be displayed. The event handler can use this opportunity to add/remove/enable/disable items contained in this menu as appropriate.
[Visual Basic] Public Sub AddOnPopup( _ ByVal handler As EventHandler _ ) [C#] public void AddOnPopup( EventHandler handler ); [C++] public: void AddOnPopup( EventHandler* handler ); [JScript] public function AddOnPopup( handler : EventHandler );
ContextMenu Class | ContextMenu Members | System.WinForms Namespace