Results 1 to 3 of 3

Thread: [RESOLVED] Getting F1 context sensative Help to work on a form

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2010
    Posts
    350

    Resolved [RESOLVED] Getting F1 context sensative Help to work on a form

    I have created a help file and I can access it on a menu item but I would like the user to be able to press F1 on a form and the help for that form to be displayed.

    If I use the following code the help file for the login is displayed - this shows that the help file is working.

    Code:
    HelpFile = Environment.CurrentDirectory() & "\MIShelp.chm"
    Help.ShowHelp(Me, HelpFile, HelpNavigator.Topic, "html\login.html")
    I have added a HelpProvider to the form and set the helpnamespace to mishelp.chm.

    On the form I have set HelpButton to True,
    left HelpKeyword on HelpProvidor blank,
    set HelpNavigator on HelpProvidor to Topic,
    and set HelpString on HelpProvider to html\login.html

    If I display the form and press F1 my Help is displayed with the message "This program cannot display the webpage" - I assume it cannot find the page.
    If I click on the ? button, I get a larger ? which I can move around - but don't want help on the controls.

    Why is the F1 help not working?

    Thanks

  2. #2
    Bad man! ident's Avatar
    Join Date
    Mar 2009
    Location
    Cambridge
    Posts
    5,401

    Re: Getting F1 context sensative Help to work on a form

    As always your first stop should be the MSDN documentation http://msdn.microsoft.com/en-us/libr....showhelp.aspx

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2010
    Posts
    350

    Re: Getting F1 context sensative Help to work on a form

    Thanks, I had looked a lot of 'Help' but could not get the answer.

    I found the solotion was:

    Form Properties should be:
    Help Button : False
    HelpKeyword on HelpProvider : html\login.html
    HelpNavigator on HelpProvider : Topic
    HelpString on HelpProvider :

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