System.Windows.Forms.MenuItem.OnClick Method

Raises the MenuItem.Click event.

Syntax

protected virtual void OnClick (EventArgs e)

Parameters

e
An EventArgs that contains the event data.

Remarks

Raising an event invokes the event handler through a delegate. For more information, see Raising an Event.

Requirements

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