Results 1 to 3 of 3

Thread: How do you show a help file?

  1. #1

    Thread Starter
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Insert a commondialog box, right click it properties, click the help tab and then fill in the boxes.
    use the command ShowHelp to show the help file:
    Code:
    Commondialog1.Showhelp
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  2. #2
    Guest
    Try this. It will display the Contents of the Help file. If you want to display a specific context, set the HelpContext property to the topic you want to show.

    Code:
    Private Sub Command1_Click()
    
        'Specify the Help file
        CommonDialog1.HelpFile = "C:\HelpFile.hlp"
        'Display the Contents specified in the [CONTENTS] section of the HPJ file.
        CommonDialog1.HelpCommand = cdlHelpContents
        'Show the HelpFile
        CommonDialog1.ShowHelp
    
    End Sub

  3. #3
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    *wow* didn't knew this, I just did it with the ShellExecute API, it makes the program smaller (except when you already have the common Dialog in your prog)
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

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