
Using WebBrowser ctl to navigate to a local file
I have a problem trying to make my VB program backwards compatible with
IE4's version of the WebBrowser object when trying to navigate to a file on
the local hard drive.
All of the following work with VB6 and IE5 installed on the same machine
(Windows 98), as an argument of the Navigate2 method.
X:\NewWebSite\Xoom\Changes.htm
"X:\NewWebSite\Xoom\Changes.htm"
file://X:\NewWebSite\Xoom\Changes.htm
file://"X:\NewWebSite\Xoom\Changes.htm"
file://"X:/NewWebSite/Xoom/Changes.htm"
file://X:/NewWebSite/Xoom/Changes.htm
None of the above work with VB6 and IE4, on Win95. I always get:
Error 5: Invalid procedure call or argument
triggered by the Navigate2 statement.
Anyone know the correct syntax for a local file specified on the Navigate2
method when using VB6 and IE4? What about IE3?
thanks
Doug Anderson
Brisbane, Australia