NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ContextMenu.AddOnPopup

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
);

Parameters

handler
Event handler to install for this event.

See Also

ContextMenu Class | ContextMenu Members | System.WinForms Namespace