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 Click Event

Occurs when the menu item is clicked or selected using a shortcut key or accelerator key defined for the menu item.

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

[Visual Basic]
Private Sub MenuItemName_Click( _
   ByVal sender As Object, _
   ByVal e As EventArgs _
)
[C#]
private void MenuItemName_Click(
   object sender,
   EventArgs e
);
[C++]
private: void MenuItemName_Click(
   Object* sender,
   EventArgs* e
);
[JScript]
private MenuItemName_Click(
   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

The OnClick event occurs when this menu item is clicked by the user, using either the mouse, accellerator keys, or shortcut keys.

Note   This event is raised only for menu items that are not submenus.

See Also

MenuItem Class | MenuItem MembersTopic | System.WinForms Namespace