Edit

Share via


ToolStripDropDownItem.OnDropDownOpened(EventArgs) Method

Definition

Raises the DropDownOpened event.

protected public:
 virtual void OnDropDownOpened(EventArgs ^ e);
protected internal virtual void OnDropDownOpened (EventArgs e);
abstract member OnDropDownOpened : EventArgs -> unit
override this.OnDropDownOpened : EventArgs -> unit
Protected Friend Overridable Sub OnDropDownOpened (e As EventArgs)

Parameters

e
EventArgs

An EventArgs that contains the event data.

Remarks

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

The OnDropDownOpened 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 OnDropDownOpened(EventArgs) in a derived class, be sure to call the base class' OnDropDownOpened(EventArgs) method so that registered delegates receive the event.

Applies to