Implimenting whats this help

Implimenting whats this help

Anonymous
Not applicable
220 Views
1 Reply
Message 1 of 2

Implimenting whats this help

Anonymous
Not applicable
Hi,
Can any one explain me how to impliment whats this help, ie when user clicks on' ?' button in user form and clicks on a contol say list box a small dialogbox provides info abot this listbox.Plese help me .

I have a compiled chm help file and i am able to call it by pressing F1 or by clicking commandbutton named as help.
But this opens help file not the contol associated help, in the for of a dialog box.
0 Likes
221 Views
1 Reply
Reply (1)
Message 2 of 2

fxcastil
Advocate
Advocate
Benny ,

You must do two things first, define the help file for the project which it sounds like you already did and have context ID's in your help file.

1) HelpFile Property Example
The following example uses the HelpFile property to assign a Help file to a project; the example verifies that the assignment was successful by printing the full path of the Help file.

Application.VBE.VBProjects(1).HelpFile = "C:\HelpStuff\veenob3.hlp"


2) The help file must have ContextID, see topic below. Then you just assingn the value ContextID to the ContextID property of the control. see below

The HelpContextID property 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.
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.

Fred Castillo
0 Likes