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.
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
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")
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