Results 1 to 2 of 2

Thread: Launchin A Html File.

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2000
    Posts
    18
    How do you get your program to launch a html file on the computer in the default browser? because I want to make my help file for my program a html file rather than a help file this time, and can't work out how to launch it.


  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    This will run all files with their assosiated app, like html files with ie...
    Code:
    Private 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
    Sub Runfile(file As String)
        lngResult = ShellExecute(hwnd, "Open", file, "", "", vbNormalFocus)
    End Sub

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