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.
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:
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.