Question Navigate.webbrowser doesn´t refreshes

Billie1123

Member
Joined
Oct 24, 2009
Messages
11
Programming Experience
Beginner
Well...

I've got a form, and two webbrowsers (wb1 & wb2). Each of them is activated by a button (bt1 & bt2), this is the code I tried:

VB.NET:
private sub navigate1 handles bt1.click
wb1.navigate ("ip.interchile.com")
end sub

private sub navigate2 handles bt2.click
wb2.navigate ("ip.interchile.com")
end sub

But when I click on bt1, and after some seconds, click bt2, they load the same page (not updated nor refreshed).

I supposse that that's because of the cache memory, that saves the page, and is showed by the other control.

So I wanted to known how to fix this problem...

I thought about deleting the webpage on cache before before navigating on the second webbrowser... but I don't know how...

I've also tried this : How to clear the cache when your application hosts a WebBrowser control in Visual Basic .NET
but the program freezes. In the method I call the subprocess "clearWBcache", and I add the line clearWBcache() before

wb1.navigate(...)
&
wb2.navigate(...)

well, I hope I've explained myself propperly.
 
Back
Top