HelpFile Property (Toolbar Control)

       

Specifies the path and filename of a Help file used by your application to display Help or online documentation.

Note   The HelpFile property for the Toolbar control enables a link to Help from the Customize Toolbar dialog box rather than from the control itself. This behavior is different from that of other Visual Basic controls that contain the HelpFile property.

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.