I have a problem with WebBrowser refresh function
When I am doing refresh | or navigate to the same url | or navigate to other url and then back to the original url,
When the DocumentText is changed in the WebPage of real internet (explorer) in the Web Page of my WebBrowser it doesn't change.
Why? even after resresh?
code:
Private Sub Timer3_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer3.Tick
Me.WebBrowser1.Refresh()
End Sub
Private Sub WebBrowser3_DocumentCompleted(ByVal sender As Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles WebBrowser3.DocumentCompleted
Me.TextBox1.Text = Me.WebBrowser1.DocumentText
End Sub
and then I check the textbox
Re: I have a problem with WebBrowser refresh function
Hi,
You could try this tick event in your timer3;
vb Code:
' Skip refresh if about:blank is loaded to avoid removing
' content specified by the DocumentText property.
If Not webBrowser1.Url.Equals("about:blank") Then
webBrowser1.Refresh()
End If
Re: I have a problem with WebBrowser refresh function
I already tryied it.
Do you have any other idea?
Maybe a code that will disconnect the WeBrowser? or refreshes it better?
Re: I have a problem with WebBrowser refresh function
I tried also the Stop () event..... and then refresh
didn't help... :(