1 Attachment(s)
[RESOLVED] HelpFile: go to specific topic
http://www.vbforums.com/showthread.p...light=helpfile
I checked out that thread, and got what information I could from it, but I can't jump to a specific topic in my helpfile. I created it using HelpNDoc, so I'm not sure if that is the problem. I've attached a screenshot that shows HelpNDoc showing me that the TopicID is "Attachments".
Here are the steps I took:
Added HelpProvider (HelpProvider1)
Set HelpProvider1.NameSpace to my .chm file
Set Form1.ShowHelp on HelpProvider1 to True
Set Form1.HelpKeyWord on HelpProvider1 to "Attachments"
Set HelpNavigator on HelpProvider1 to TopicID
It still always open to my Glossary page (the first node). Am I doing something wrong here?
Thanks
Re: HelpFile: go to specific topic
Do it like this:
VB.Net Code:
'set help so it will activate on F1 in textbox with name "txtbox1"
'I presume that all your html files are under HTML folder before have you created chm file (...\html\*.htm),
HelpProvider1.SetHelpNavigator(txtbox1, HelpNavigator.Topic)
HelpProvider1.SetHelpKeyword(txtbox1, "html/Orders.htm")
...or...
in Designer, in "txtbox1" properties set:
Herlpkeyword on Helpprovider1 => html/Orders.htm
HelpNavigator on Helpprovider1 => Topic
Re: HelpFile: go to specific topic
Thanks, I actually had to drop the "htm/" to make it work, but you got me on the right path. I've found (by attaching a ridiculously wrong html to a node) that you just use the TopicID (non-case sensitive) and add ".html" on the end. So, I did this:
Helpkeyword on Helpprovider1 => orders.html
HelpNavigator on Helpprovider1 => Topic
Re: [RESOLVED] HelpFile: go to specific topic
N.P., I'm glad it helped you on right track.