Click to See Complete Forum and Search --> : display html page on form
joey o.
Dec 30th, 1999, 04:42 AM
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.
Stick
Dec 30th, 1999, 05:36 AM
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 (http://wwp.icq.com/scripts/search.dll?to=9639200)
joey o.
Dec 30th, 1999, 08:31 AM
Thanks Stick!
I'm sure other new-bees like myself will benefit from this also!
JoeyO
joey o.
Dec 30th, 1999, 08:50 AM
One more thing, I had to use "Public Declaration" to make this work. Something I'm doing wrong?
Clunietp
Dec 30th, 1999, 12:12 PM
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
joey o.
Dec 30th, 1999, 08:37 PM
Thanks for the clarification Clunietp :)
Clunietp
Dec 30th, 1999, 10:12 PM
you got it joey
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.