Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Invoking a help program

Status
Not open for further replies.

Bruce1965

Programmer
Sep 17, 2004
54
GB
I have created a VBprogram and want to get clever by building in some help for the end user.

I have created a windows type help file (using HTML Help Workshop) and want to be able to invoke this from my VB program.

How do I -

Integrate this help file into my solution
and
Run the help from within the solution


Any tips/code will be appreciated.

Cheers


[2thumbsup]
 
Have a look at the HelpProvider control. Here are some examples on it's use:


--------------------------------------------------------------------------------------------------------------------------------------------

Need help finding an answer?

Try the search facility ( or read FAQ222-2244 on how to get better results.
 
Thanks for that, the second link was most helpful - I've got it working when the user presses the F1 key .....

Is there a bit of code that I can assign to a button click event to invoke the help provider???


Cheers,
Paul


[afro]
 
Yes, from the second article, this section should help:
To programmatically display help, you can use the static method ShowHelp() of the Help class.

To show the table of contents, call: Help.ShowHelp(this, "helpfile.chm");

--------------------------------------------------------------------------------------------------------------------------------------------

Need help finding an answer?

Try the search facility ( or read FAQ222-2244 on how to get better results.
 
I didn't get on with that snippet of code - just couldn't get it to work!!

However, I have found a solution that has worked -

Code:
 System.Windows.Forms.Help.ShowHelp( _
         Me, _
         HelpProvider1.HelpNamespace, _
         System.Windows.Forms.HelpNavigator.Topic, _
         HelpProvider1.GetHelpKeyword(Me))

Thanks for help anyway

[thumbsup]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top