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?
LVL 4
SkipFireAsked:
Who is Participating?
 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.