Share via


BaseForm.OnHelpRequested(HelpEventArgs) Method

Definition

Occurs when a Help control is activated.

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

Parameters

hevent
HelpEventArgs

A HelpEventArgs that contains the event data.

Examples

The following example duplicates the implementation of the OnHelpRequested method.

protected override void OnHelpRequested(HelpEventArgs hlpEvnt) {

    if (CanShowHelp) {
        ShowHelp();
    }

    hlpEvnt.Handled = true;
}

Applies to