dlwulfe
asked on
Help WorkShop - Problem displaying a topic
I created a .hlp help file using Microsoft Help Workshop Version 4.10. I attached it to a Visual Basic program that I wrote using VB 6. I created my own Table Of Contents as the first Topic in my .rtf file as opposed to using a .ctn file for my Table Of Contents. I mapped all the topics in my help file and used the Topic mapped numbers in my VB program.
My VB program has a menu bar that includes Help. The Help drop down menu includes Contents, Registration and About. It looks like this.
Help
Contents
Registration
About
I can display my programs “Help Table of Content” when pressing F1 or when I select Help, Contents, from my program’s menu which is what I want to happen.
My problem is when I select Help, Registration, from my programs menu I also get my “Help Table Of Contents”, but I really want the Topic about how to register the program.
I mapped the Table of Contents as 1000, and I mapped the Registration Topic as 1013 in the Help Workshop. In my VB program the menu item called Registration (mnuRegister) was assigned the HelpContentID of 1013 and the main form in my program was assigned the HelpContentID of 1000.
I used the Properties window in VB to assign the HelpContentID’s, but because that didn’t work I also included the following code in the Form_Load procedure:
Me.HelpContextID = 1000
mnuRegister.HelpContextID = 1013
Here is the code associated with Registration on my menu:
Sub mnuRegister_Click()
SendKeys "{F1}"
End Sub
What do I need to do to get the Registration Topic of my help file to display instead of the Table Of Contents when selecting Registration from my menu?
Thanks for the help.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Ensure the Declare statement appears on one line.
ASKER
Adjusted points to 300
ASKER
Thanks so much. If the help documentation in VB explained this, I sure missed it!!! I increased the points to 300 because your answer was so clear and you gave me code.
Thanks dlwulfe.
I'm pleased I was able to help you.
I'm pleased I was able to help you.