[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 328
  • Last Modified:

Web browser control & non-cache refresh

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?
0
SkipFire
Asked:
SkipFire
1 Solution
 
Mike TomlinsonMiddle School Assistant TeacherCommented:
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

0
 
SkipFireAuthor Commented:
Thanks, that did it!
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

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