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!

MenuItem Popup Event

Occurs before a menu item's list of menu items is displayed.

The following declaration shows the syntax for a method that handles the Popup event.

[Visual Basic]
Private Sub MenuItemName_Popup( _
   ByVal sender As Object, _
   ByVal e As EventArgs _
)
[C#]
private void MenuItemName_Popup(
   object sender,
   EventArgs e
);
[C++]
private: void MenuItemName_Popup(
   Object* sender,
   EventArgs* e
);
[JScript]
private MenuItemName_Popup(
   sender : Object,
   e : EventArgs
);

Parameters

sender
The source of the event.
e
An EventArgs that contains the event data. The following EventArgs properties provide information specific to this event.
Property Description
ExtendedInfo
Holds a reference to an object that manages the event's state.

Remarks

This event only occurs when a menu item has submenu items to display. You can use this event handler to add, remove, enable, disable, check, or uncheck menu items based on the state of your application before they are displayed.

See Also

MenuItem Class | MenuItem MembersTopic | System.WinForms Namespace