
Webbrowser control for local .htm files
I've got some *.htm files that are local, that is to say, on the same
computer, and in fact, in the same directory, as my .exe file. In other
words, not at an http: address, they're just off in a c:\whatever directory.
I've used a webbrowser control to display these, in the form:
Option Explicit
Sub form_load()
Dim url1 As String
url1 = CurDir & "\starting.htm"
WebBrowser1.Navigate url1
End Sub
This works pretty good. Most of the time.
But once in awhile, in no pattern I can see, it tries to connect to the
internet when you do this (I suspect based on whether or not you've
connected to the internet recently). Othertimes it doesn't and comes up
fine. I don't need it to connect to the internet, the files are right
there on the computer, and if you cancel out, they display fine.
Is there a way I can tell it, nope, don't even think about trying to connect
to the internet, the files are right there?
************
Tom Luthman
http://www.*-*-*.com/ ~tluthman