Uređivanje

Dijeli putem


ToolBar.OnButtonDropDown(ToolBarButtonClickEventArgs) Method

Definition

Raises the ButtonDropDown event.

protected:
 virtual void OnButtonDropDown(System::Windows::Forms::ToolBarButtonClickEventArgs ^ e);
protected virtual void OnButtonDropDown (System.Windows.Forms.ToolBarButtonClickEventArgs e);
abstract member OnButtonDropDown : System.Windows.Forms.ToolBarButtonClickEventArgs -> unit
override this.OnButtonDropDown : System.Windows.Forms.ToolBarButtonClickEventArgs -> unit
Protected Overridable Sub OnButtonDropDown (e As ToolBarButtonClickEventArgs)

Parameters

e
ToolBarButtonClickEventArgs

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

Applies to

See also