Results 1 to 4 of 4

Thread: [RESOLVED] [2005] Jump to topic in CHM

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2000
    Location
    NY
    Posts
    497

    Resolved [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?
    end war
    stop greed

  2. #2
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    Re: [2005] Jump to topic in CHM

    Have you taken a look at this?
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2000
    Location
    NY
    Posts
    497

    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.
    end war
    stop greed

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2000
    Location
    NY
    Posts
    497

    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)
    end war
    stop greed

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