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.OnClick

Raises the System.WinForms.MenuItem.Click event.

[Visual Basic]
Overridable Protected Sub OnClick( _
   ByVal e As EventArgs _
)
[C#]
protected virtual void OnClick(
   EventArgs e
);
[C++]
protected: virtual void OnClick(
   EventArgs* e
);
[JScript]
protected function OnClick(
   e : EventArgs
);

Parameters

e
An EventArgs that contains the event data.

Remarks

Raising an event invokes the event-handling method through a delegate. For more information, see TBD.

Notes to Inheritors: When overriding OnClick in a derived class, be sure to call the base class's OnClick method.

See Also

MenuItem Class | MenuItem Members | System.WinForms Namespace | AddOnClick | RemoveOnClick