Redigera

Dela via


ToolStripDropDownItem.OnDropDownItemClicked Method

Definition

Raises the DropDownItemClicked event.

protected public:
 virtual void OnDropDownItemClicked(System::Windows::Forms::ToolStripItemClickedEventArgs ^ e);
protected internal virtual void OnDropDownItemClicked (System.Windows.Forms.ToolStripItemClickedEventArgs e);
abstract member OnDropDownItemClicked : System.Windows.Forms.ToolStripItemClickedEventArgs -> unit
override this.OnDropDownItemClicked : System.Windows.Forms.ToolStripItemClickedEventArgs -> unit
Protected Friend Overridable Sub OnDropDownItemClicked (e As ToolStripItemClickedEventArgs)

Parameters

Remarks

Raising an event invokes the event handler through a delegate. For more information, see Handling and Raising Events.

The OnDropDownItemClicked method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.

Notes to Inheritors

When overriding OnDropDownItemClicked(ToolStripItemClickedEventArgs) in a derived class, be sure to call the base class' OnDropDownItemClicked(ToolStripItemClickedEventArgs) method so that registered delegates receive the event.

Applies to