Επεξεργασία

Κοινή χρήση μέσω


Control.OnHelpRequested(HelpEventArgs) Method

Definition

Raises the HelpRequested event.

protected:
 virtual void OnHelpRequested(System::Windows::Forms::HelpEventArgs ^ hevent);
protected virtual void OnHelpRequested (System.Windows.Forms.HelpEventArgs hevent);
abstract member OnHelpRequested : System.Windows.Forms.HelpEventArgs -> unit
override this.OnHelpRequested : System.Windows.Forms.HelpEventArgs -> unit
Protected Overridable Sub OnHelpRequested (hevent As HelpEventArgs)

Parameters

hevent
HelpEventArgs

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

Applies to

See also