|
-
Apr 12th, 2013, 05:59 AM
#1
Thread Starter
Hyperactive Member
[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
-
Apr 12th, 2013, 06:44 AM
#2
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
-
Apr 12th, 2013, 06:48 AM
#3
Thread Starter
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|