Results 1 to 7 of 7

Thread: display html page on form

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 1999
    Location
    ma,usa
    Posts
    485

    Post

    G'day all and happy new year!
    I tryed to use:
    Retval = Shell("C:\FileName.html")
    Obviously it doesn't work or I wouldn't be posting. Not only do I need to know how to do this but I need to know if it matters if they 've got I.E. or Netscape and if it does how do I find out.
    Thanks,
    Joey O.

  2. #2
    Addicted Member Stick's Avatar
    Join Date
    Aug 1999
    Location
    Iowa
    Posts
    152

    Post

    This will work To Open the html file with there Default Browser Hope this Helps!!!


    Declarations:

    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

    Code:

    Call ShellExecute(hwnd, "Open", "C:\??\File.htm" & List1, vbNullString, vbNullString, 9)


    ------------------
    _-_-_-_-_-_-_-_-_-_-_-_-_
    Thanks
    Sean Stickrod
    ICQ:9639200



  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 1999
    Location
    ma,usa
    Posts
    485

    Post

    Thanks Stick!
    I'm sure other new-bees like myself will benefit from this also!
    JoeyO

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 1999
    Location
    ma,usa
    Posts
    485

    Post

    One more thing, I had to use "Public Declaration" to make this work. Something I'm doing wrong?

  5. #5
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844

    Post

    Use Public Declare when you put the API declaration in a module, and use Private Declare when you put the API declaration in a form

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 1999
    Location
    ma,usa
    Posts
    485

    Post

    Thanks for the clarification Clunietp

  7. #7
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844

    Post

    you got it joey

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