• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 202
  • Last Modified:

Make the IE Browser Control Reaload Pages

My app uses the IE Browser Control to load a Web Page at the start. I want to be sure that the page is loaded each time the app is run and not the cached version of the page on the user's PC.
What can I set or do to insure this?
0
rbend
Asked:
rbend
1 Solution
 
Éric MoreauSenior .Net ConsultantCommented:
Use the Refresh2 method.
0
 
rbendAuthor Commented:
please explain how to apply or use it.
I have no example. Where do I place it and how is it worded.
Thanks.
0
 
johnny6Commented:
rbend:
     Is this what you are looking for?

On Internet Explorer menu bar go to Tools > Internet Options > General Tab > Temporary Internet Files > Settings button > Check For newer versions of stored pages: >  click on the option button that says "Every visit to the page".

John
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
jgvCommented:
When you initially navigate to a url (on start up) you can set the flag to 'not read from cache'. If you want to reload the page after navigation, you can use the naviage2 method (emoreau's suggestion). You can then specify a complete refresh.

Const navNoReadFromCache = 4
Const refresh_completely = 3

Private Sub Form_Load()
WebBrowser1.Navigate "www.experts-exchange.com", navNoReadFromCache
End Sub

Private Sub cmdRefresh_Click()
WebBrowser1.Refresh2 refresh_completely
End Sub

Navigate method:
http://msdn.microsoft.com/workshop/browser/webbrowser/reference/methods/navigate.asp

Refresh2 method:
http://msdn.microsoft.com/workshop/browser/webbrowser/reference/methods/Refresh2.asp#Refresh2
0
 
Éric MoreauSenior .Net ConsultantCommented:
As jgv already said: WebBrowser1.Refresh2
0
 
rbendAuthor Commented:
This seems to be handling my need. Thanks to all of you for being helpful.
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now