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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Code to Open .chm Help File 1

Status
Not open for further replies.

Mungovan

Programmer
Oct 24, 2002
94
IE
Hi.
How do I open a .chm hlp file in my VB code when someone clicks on my help icon.
The help file is located in the same folder as the application.

Thanks,
D
 
For a .chm HTML help file I use the shell function like this,

Shell "hh.exe " & App.Path & "\" & App.HelpFile, vbNormalFocus

The app.Helpfile is set in the project properties. You can also replace that with the actual name of the file.


Thanks and Good Luck!

zemp
 
You can also use the code posted in thread611878 by strongm. It will open the file and close it (if it is still open) when your calling app closes. Sweet and simple.

Just replace "notepad" with "hh.exe " & App.Path & "\" & App.HelpFile

Thanks and Good Luck!

zemp
 

Hi Mungovan:

To connect your help file to VB, go to the menu Project | Properties and in the Help File Name: box, and add the name of your help file.

Also have a look at Thread222-610986.

Cassie
 

Hi:

I forgot to mention the two FAQs by Sunaj: faq222-2088 and faq222-1111.

These helped me to get going with help from withn VB.

Cassie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top