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;
}
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for