Visual Basic Reference
HelpFile Property (App, CommonDialog, MenuLine)
Specifies the path and filename of a Help file used by your application to display Help or online documentation.
Syntax
object.HelpFile[ = filename]
The HelpFile property syntax has these parts:
Part | Description |
object | An object expression that evaluates to an object in the Applies To list. |
filename | A string expression specifying the path and filename of the help file for your application. |
Remarks
If you've created a Help file for your application and set the application's HelpFile property, Visual Basic automatically calls Help when a user presses the F1 key. If there is a context number in the HelpContextID property for either the active control or the active form, Help displays a topic corresponding to the current Help context; otherwise it displays the main contents screen.
You can also use the HelpFile property to determine which Help file is displayed when a user requests Help from the Object Browser for an ActiveX component.