[RESOLVED] [2005] Jump to topic in CHM
I've read the help on HelpProvider SetHelpKeyword Method. It says:
Quote:
The Help keyword provides the key information to retrieve the Help associated with this control from the Help file specified by the HelpNamespace property. To open Help to a specific topic, the keyword should be passed in the form topicName.htm. To clear the keyword, call the SetHelpKeyword method with a keyword value of nullNothingnullptra null reference (Nothing in Visual Basic).
So, in the Form_Load event, I execute:
Code:
HelpProvider1.SetHelpKeyword(Me, "mytopic.htm")
And when I press F1, it opens the helpfile, fills in a "m" in the index and opens the default topic.
Any ideas why this doesn't work?
Re: [2005] Jump to topic in CHM
Have you taken a look at this?
Re: [2005] Jump to topic in CHM
That's not what I'm looking for--I don't want to have to put code in every keypress event on every control to get help.
Besides, the syntax on the last one is not correct--don't know what that's supposed to do.
Re: [2005] Jump to topic in CHM
Figured it out...from the beginning:
Drag a helpprovider control onto the form. Make sure you set ShowHelp on HelpProvider to True
Then set:
Code:
Me.HelpProvider1.HelpNamespace = g_sInstallDir & Application.ProductName & ".chm"
Me.HelpProvider1.SetHelpKeyword(Me, "My Topic")
Me.HelpProvider1.SetHelpNavigator(Me, HelpNavigator.KeywordIndex)