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

VB Projects & help files - get going.

Help on help

VB Projects & help files - get going.

by  sunaj  Posted    (Edited  )
This is not really a FAQ, but more a collection of good links to get you going adding help to your vb project.


There are 2 types of help projects that you can use with VB:
WinHelp and HTMLhelp.


WinHelp
Winhelp is the 'old' helpfiles. The help files are based on rtf documents which can be made in e.g. Word.
You need a compiler to generate the help project (.hlp). The microsoft help compiler can be downloaded from ftp://ftp.microsoft.com/softlib/mslfiles/hcwsetup.exe.

I find the projects a little cumbersome to generate due to the rtf format and the convention with having all the 'tags' as footnotes in the rft document. On the other hand when the document is generated it is easy to incorporate in your VB project, because it can be called via the common dialog:
--------------------------------------------------------------
Const HelpCNT = &HB
Private Sub mnuHelp_Click()
CommonDialog1.HelpFile = "c:\winnt\help\jetsql35.hlp"
CommonDialog1.HelpCommand = HelpCNT Or cdlHelpSetContents
CommonDialog1.ShowHelp
End Sub
--------------------------------------------------------------


HTMLhelp
HTMLhelp is the newer helpfile type, based on HTML documents and in my opion much nicer for the user. On the other hand is is not easily integrated with VB, but once you get the hang of it, it works perfectly.

HTML help projects can be made with the HTML helpdesk, which can be downloaded from http://msdn.microsoft.com/library/default.asp?url=/library/en-us/htmlhelp/html/hwMicrosoftHTMLHelpDownloads.asp

The quick (and not very efficient) way to call your HTMLhelp project (.chm) from VB:
Get the windowes directory by using the FileSystemObject (or Environ("windir"))
dHelp = Shell(MyWinDir & "\hh.exe c:\MyHelp.chm", vbMaximizedFocus)

To integrate the HTML help project (.chm) in your VB project the proper way, follow the instrutions at http://support.microsoft.com/support/kb/articles/Q242/4/33.ASP


How to link html help files: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/htmlhelp/html/vsconhtlink2.asp
[sub]This link won't show properly, so copy the url into your browser.[/sub]

Good luck
[pipe] Sunaj
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top