Displaying help from a Msgbox is really quite simple, using the syntax below:
Msgbox Message, Options + vbMsgBoxHelpButton, DialogTitle, HTMLHelpFilePath & ">" & WindowName, ContextInteger
So, the following code displays a message box like this
MsgBox "Test Error Message Text.", _
vbOKOnly + vbExclamation + vbMsgBoxHelpButton, _
"Test Error Message", _
"C:TestHTMLHelp.chm" & ">Main", 1010
This code presumes the test compiled Help file is saved as C:TestHTMLHelp.chm, and you have the following items in the Project File:
[ALIAS]
IDH_TESTTOPIC2=html est_topic_2.htm
[MAP]
#define IDH_FIND_DIALOG 1010
If you get this:
check the path, and the Window name. If the HTML Help file is displayed, but with just the default page, check the Context Integer value, and the topic it is assigned to. If you have any problems, please contact me.
Comments