BaseForm.OnHelpRequested(HelpEventArgs) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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;
}