|
-
Mar 17th, 2009, 01:38 PM
#1
Thread Starter
Addicted Member
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
Last edited by assafey; Mar 17th, 2009 at 01:42 PM.
-
Mar 17th, 2009, 01:44 PM
#2
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
-
Mar 17th, 2009, 01:49 PM
#3
Thread Starter
Addicted Member
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?
-
Mar 17th, 2009, 01:58 PM
#4
Thread Starter
Addicted Member
Re: I have a problem with WebBrowser refresh function
I tried also the Stop () event..... and then refresh
didn't help...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|