HelpProvider.SetHelpKeyword(Control, String) Method

Definition

Specifies the keyword used to retrieve Help when the user invokes Help for the specified control.

public virtual void SetHelpKeyword(System.Windows.Forms.Control ctl, string keyword);
public virtual void SetHelpKeyword(System.Windows.Forms.Control ctl, string? keyword);

Parameters

ctl
Control

A Control that specifies the control for which to set the Help topic.

keyword
String

The Help keyword to associate with the control.

Remarks

The Help keyword provides the key information to retrieve the Help associated with this control from the Help file specified by the HelpNamespace property. To open Help to a specific topic, the keyword should be passed in the form topicName.htm. To clear the keyword, call the SetHelpKeyword method with a keyword value of null.

Applies to

Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

See also