HelpContextID Property

Applies To

CheckBox control, ComboBox control, CommandButton control, ListBox control, MultiPage control, OptionButton control, Page object, ScrollBar control, SpinButton control, TabStrip control, TextBox control, ToggleButton control, UserForm object.

Description

Associates a specific topic in a custom Microsoft Windows Help file with a specific control.

Syntax

object.HelpContextID [= Long]

The HelpContextID property syntax has these parts:

Part

Description

object

Required. A valid object.

Long

Optional. A positive integer specifies the context ID of a topic in the Help file associated with the object. Zero indicates no Help topic is associated with the object (default). Must be a valid context ID in the specified Help file.


Remarks

The topic identified by the HelpContextID property is available to users when a form is running. To display the topic, the user must either select the control or set focus to the control, and then press F1.

The HelpContextID property refers to a topic in a custom Help file you have created to describe your form or application. In Visual Basic, the custom Help file is a property of the project.