Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27061

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

$
0
0
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

Viewing all articles
Browse latest Browse all 27061

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>