HELP Context ID Property
VB 2.0/3.0
Visual Basic version 2.0/3.0 has a built in mechanism to employ the use of context sensitive help.
Help File
To make use of the built in help file functions, you must first declare the name of the help file for the application:
App.HelpFile = "myhelp.hlp"
Place this declaration in the Form_Load procedure of your main form.
Context ID
In Visual Basic version 2.0/3.0, most controls have a HelpContextID property. To make use of the built in context sensitivity, set the HelpContextID property of each control to the Context Number of the page that provides help on that control.
When the user presses the F1 key, the help system will be called, with the appropriate page displayed. If no Context ID is assigned to the active control, the help system will start with the index page.
Constants
Constants can be declared, assigning the value of the Context Number to a string descriptor. Search Visual Basic's help on the word HelpContextID for more information.
See Also
Calling WinHelp()
Calling WinHelp Version 4.0 #define list Examples FuCommand Parameters The HELPINFO Structure The HELPWININFO Structure The MULTIKEYHELP Structure The WM TCard Structure Visual Basic