|
-
Jan 30th, 2008, 10:25 AM
#1
Thread Starter
Hyperactive Member
[RESOLVED] [2005] Jump to topic in CHM
I've read the help on HelpProvider SetHelpKeyword Method. It says:
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?
-
Jan 30th, 2008, 10:27 AM
#2
Re: [2005] Jump to topic in CHM
Have you taken a look at this?
-
Jan 30th, 2008, 10:37 AM
#3
Thread Starter
Hyperactive Member
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.
-
Jan 30th, 2008, 11:08 AM
#4
Thread Starter
Hyperactive Member
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)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|