Click to See Complete Forum and Search --> : help for webbrowser control


coolily
March 2nd, 2000, 05:13 PM
i cant seem to use the webbrowser's navigate property. isnt it this control that i should use in order to navigate to a particular website??

Johnny101
March 2nd, 2000, 05:48 PM
I'm not sure what kind of errors you are getting, but this code works fine for me:

private Sub Form_Load()
WebBrowser1.Navigate "http://www.stlvbug.org"
End Sub

private Sub WebBrowser1_DocumentComplete(byval pDisp as Object, URL as Variant)
MsgBox "Done"
End Sub




Place a WebBrowser control on the form (dont rename it for this code) and hit F5.

You should see the page comming down and then when it's finished, a message box should pop up indicating it's finished.

Hope this helps,
John

John Pirkey
MCSD
www.ShallowWaterSystems.com