Results 1 to 5 of 5

Thread: .chm files program help

  1. #1
    DarthCooper
    Guest

    .chm files program help

    Hi,
    Okay, I have finished my wonderful program (!). Now to add a little help for the user. I used HTML Help Workshop and got my little .chm file compiled and everything. My question is, how do I load this up from VB? I am doing it the traditional way, from the drop down menu bar, Help | Contents and Index.

    But how? Also what files do I need to ship with the program?

    Thanks!

    Pete

  2. #2
    DarthCooper
    Guest

    Talking any 1 know? :)


  3. #3
    jnielsen
    Guest
    This class will get you going.

    Set the CHMFile property to the location of your help file.
    Call HHDisplayContents to display Contents Tab.

  4. #4
    Frenzied Member John McKernan's Avatar
    Join Date
    Jan 2002
    Location
    SE PA
    Posts
    1,295
    Function declaration:
    VB Code:
    1. Declare Function HtmlHelp Lib "hhctrl.ocx" Alias "HtmlHelpA" _
    2.                             (ByVal hwndCaller As Long, _
    3.                             ByVal pszFile As String, _
    4.                             ByVal uCommand As Long, _
    5.                             ByVal dwData As Long) As Long

    Calling the help:
    VB Code:
    1. Dim hwndHelp as Long
    2. hwndHelp = HtmlHelp(Me.hWnd, App.HelpFile, HH_DISPLAY_TOPIC,0)
    App.Helpfile is set in Projects|Properties

  5. #5
    DarthCooper
    Guest

    ...

    Thanks you guys, I'll give it a whizz

    Pete

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width