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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Web Browser control not refreshing from internet

Status
Not open for further replies.

SnyAc

Programmer
Jul 25, 2001
272
US
I need to know how to force the WebBrowser control to update page from the internet instead of displaying the page from the cache.... Is there a property I can set?

Thanks...

Andy Snyder
SnyAc Software Services
 
If you use the Refresh2 method of the webbrowser control it will allow you to send in an optional parameter. The parameter can be one of the following constants:

#DEFINE REFRESH_NORMAL 0
#DEFINE REFRESH_IFEXPIRED 1
#DEFINE REFRESH_CONTINUE 2
#DEFINE REFRESH_COMPLETELY 3

The one you will obviously want is REFRESH_COMPLETELY. Here is some documentation on the different refresh levels...


Also, here's a somewhat old (but still quite good) page on the webbrowser control since you seem to be doing a lot with this control lately.


boyd.gif

SweetPotato Software Website
My Blog
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top