Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trouble refreshing a WebBrowser object

Status
Not open for further replies.

TANKERx

MIS
Jul 19, 1999
28
GB
I have a form which contains a WebBrowser object. Using the Navigate method, I load a local HTML file from the Hard Drive.<br><br>To load another, I again use the Navigate method but need to press F5 for the page to refresh.<br><br>I have tried using the refresh method on the object and I'm told that it failed.<br><br>Any ideas?
 
I had similar problems, but instead of refereshing, why not just re-navigate? WebBrowser1.navigate txtURL.text

I think there may be some flags you can set in the .refresh method which may help also.
 
what i have done is this

make a combo box (visable or not) and set your url as the text in it

and make a button call the function

Private Sub cboAddress_Click()

WebBrowser1.Navigate cboAddress.Text

If mbDontNavigateNow Then Exit Sub
timTimer.Enabled = True

End Sub

That is how i refresh my screen or load form or whatever

is this any help??
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top