Results 1 to 5 of 5

Thread: How To Load A Help File (*.HLP) in VB

  1. #1

    Thread Starter
    Lively Member Adrian Koh's Avatar
    Join Date
    Jan 2001
    Location
    Johor, Malaysia
    Posts
    64

    Exclamation

    Can anyone tell me how to load a help file.

    Thanks
    VisualBasic5.0ServicePack3

  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091

    ShellExecute...

    Code:
    Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
    
    Private Sub Command1_Click()
      ShellExecute me.hwnd, "OPEN", "help.hlp","","",3
    End Sub
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  3. #3
    Hyperactive Member SoftwareMaker's Avatar
    Join Date
    Mar 2001
    Location
    Elbonia with Dilbert and Wally
    Posts
    322

    Load a Help File

    Hi Adrian,

    2 ways

    1) Go to the Project Properties Dialog and Set the Help File Name there

    2) Do it in Code via the App.HelpFileName Method

    A piece of Advice,
    Try developing HTML Help instead. WinHelp File is to be retired from Windows Soon. Download the free HTML Help Workshop from Microsoft Website. It is easier to create than a.HLP File and can be viewed online cos its all HTML.
    William T
    Software Architect / Chief Software Developer
    Softwaremaker.Net Pte Ltd
    http://www.Softwaremaker.net

    *** Things are always the darkest before they go pitch black ***

  4. #4
    PowerPoster Lethal's Avatar
    Join Date
    Oct 2000
    Location
    Ohio
    Posts
    2,496
    Another way 2 go along with Crypts: Go to project ~~~>Properties~~~>Help File Name: Add the location of the help file

  5. #5

    Thread Starter
    Lively Member Adrian Koh's Avatar
    Join Date
    Jan 2001
    Location
    Johor, Malaysia
    Posts
    64

    Talking Thanks .....

    Can you be a bit more detailed coz i'm new at this..

    Thanks.
    VisualBasic5.0ServicePack3

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