System.Windows.Forms.MenuItem.Click Event

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

Syntax

public event EventHandler Click

Remarks

The MenuItem.Click event occurs when this System.Windows.Forms.MenuItem is clicked by the user. This event also occurs if the user selects the menu item using the keyboard and presses the Enter key. It can also occur if an access key or shortcut key is pressed that is associated with the System.Windows.Forms.MenuItem. For more information about handling events, see Consuming Events.

Note:

If the Menu.MenuItems property for the System.Windows.Forms.MenuItem contains any items, this event is not raised. This event is not raised for parent menu items.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0