We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

Web browser control & non-cache refresh

SkipFire
SkipFire asked
on
Medium Priority
348 Views
Last Modified: 2008-03-10
I have a project with the web browser control that has a refresh button.  When that button is pressed I want do do the equivalent of Ctrl+F5.  I have tried the .Navigate(url) and the .Navigate2(url) but both use the cache.  How can I accomplish this behavior?
Comment
Watch Question

High School Computer Science, Computer Applications, Digital Design, and Mathematics Teacher
CERTIFIED EXPERT
Top Expert 2009
Commented:
Try Refresh2():
http://msdn.microsoft.com/library/default.asp?url=/workshop/browser/webbrowser/reference/methods/refresh2.asp
http://msdn.microsoft.com/library/default.asp?url=/workshop/browser/webbrowser/reference/enums/refreshconstants.asp


Option Explicit

Private Const REFRESH_COMPLETELY = 3

Private Sub Command1_Click()
    WebBrowser1.Refresh2 REFRESH_COMPLETELY
End Sub

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

Commented:
Thanks, that did it!
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.