Results 1 to 4 of 4

Thread: [RESOLVED] HelpFile: go to specific topic

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2006
    Posts
    675

    Resolved [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
    Attached Images Attached Images  
    VB.Net 2008
    .Net Framework 2.0

    "Must you breathe? 'Cause I need heaven..."

  2. #2
    Hyperactive Member Zeljko's Avatar
    Join Date
    Oct 2006
    Location
    Internet
    Posts
    441

    Re: HelpFile: go to specific topic

    Do it like this:
    VB.Net Code:
    1. 'set help so it will activate on F1 in textbox with name "txtbox1"
    2. 'I presume that all your html files are under HTML folder before have you created chm file (...\html\*.htm),
    3.         HelpProvider1.SetHelpNavigator(txtbox1, HelpNavigator.Topic)
    4.         HelpProvider1.SetHelpKeyword(txtbox1, "html/Orders.htm")
    ...or...

    in Designer, in "txtbox1" properties set:
    Herlpkeyword on Helpprovider1 => html/Orders.htm
    HelpNavigator on Helpprovider1 => Topic
    Last edited by Zeljko; Mar 23rd, 2010 at 10:14 AM. Reason: added designer option
    1. If this post helped you, please Rate it = That's You, saying Thanks, to Me ...Left side of this post: [Rate this post]
    2. Mark this Thread Resolved if your question has been answered That's You, saying Thanks, to Group ...Menu on top of your original Post: [Thread Tools]>[Mark Thread Resolved]
    3.
    Check my site: www.er-ef.netCheck my snippets: Get installed .NET versionsRegex extractingJoin hierarchically nested Datatables in one flattened Datatable


  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2006
    Posts
    675

    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
    VB.Net 2008
    .Net Framework 2.0

    "Must you breathe? 'Cause I need heaven..."

  4. #4
    Hyperactive Member Zeljko's Avatar
    Join Date
    Oct 2006
    Location
    Internet
    Posts
    441

    Re: [RESOLVED] HelpFile: go to specific topic

    N.P., I'm glad it helped you on right track.
    1. If this post helped you, please Rate it = That's You, saying Thanks, to Me ...Left side of this post: [Rate this post]
    2. Mark this Thread Resolved if your question has been answered That's You, saying Thanks, to Group ...Menu on top of your original Post: [Thread Tools]>[Mark Thread Resolved]
    3.
    Check my site: www.er-ef.netCheck my snippets: Get installed .NET versionsRegex extractingJoin hierarchically nested Datatables in one flattened Datatable


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width