HelpContextID Property

See AlsoVLV5TU                 Example9CISP>Low

Applies To

Form14TJ2LN, MDI form1ILMZQ7, check box9P3BU5, combo box1YZXFF6, command buttonXJSPC0, data control2E1FEX3, directory list boxO9U5A0, drive list box5WJO0PW, file list box1M6S8UX, frame1KX6ZP8, grid2VGT0PT, horizontal scroll bar1JSJOS7, list boxG11UCK, menuBKDT1F, OLE control2HQDVVU, option buttonJYBO08, picture box31MYIWX, text boxYPYZDG, vertical scroll bar1JSJOS7.

Description

Determines an associated context number for an object.  Used to provide context-sensitive Help for your application.

Usage

[form.][control.]HelpContextID[ = numericexpression ]

Remarks

For context-sensitive Help on an object in your application, you must assign the same context number to both the object and to the associated Help topic when you compile your Help file.

If you've created a Windows environment Help file for your application and set the application's HelpFile30PBQSA property, when a user presses the F1 key, Visual Basic automatically calls Help and requests the topic identified by the current context number.

The current context number is the value of HelpContextID for the object that has the focus.  If HelpContextID is 0, then Visual Basic looks in the HelpContextID of the object's container, and then that object's container, and so on.  If a non-zero current context number can't be found, the F1 key is ignored.

 

Note   Building a Help file requires the Microsoft Windows Help Compiler, which is available with the Visual Basic Professional Developer's Edition.

 

Data Type

Long integer103F6YL


See Also

Help:

HelpFile Property30PBQSA

 

Visual Basic Professional Developer's Edition:

Help Compiler Guide