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

Connecting Help System to Visual Basic?

Status
Not open for further replies.

asteroidB

Programmer
Jul 6, 2001
4
AU
I have created a help system in Microsoft’s HTML Help Workshop. I have connected the Help system to the Visual Basic application via the Form_Load event procedure with the following statement:

App.Helpfile = App.Path & “\Help.chm”

This works fine, when the main form appears, I press F1 the Help appears – no problem. However, I was wondering how I can display the help file from a CommandButtons click event procedure?

I thought I could use the Shell Function to call the “Help.chm” file but this doesn’t work.

What can I do?? Any ideas ??!!
 
Hi,

There's 2 ways to do that. the first (and the best) is to goto and download a class that handles the opening of an HTML help file. It works great. There's also VB samples. With the class you can make context sensitive help etc.

The dirty way:
get the windowes directory by using the FileSystemObject (or Environ("windir")) and

dHelp = Shell(MyWinDir & "\hh.exe c:\MyHelp.chm", vbMaximizedFocus)

Sunaj
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top