Results 1 to 4 of 4

Thread: I have a problem with WebBrowser refresh function

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2009
    Posts
    166

    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.

  2. #2
    PowerPoster sparrow1's Avatar
    Join Date
    May 2005
    Location
    Globetrotter
    Posts
    2,820

    Re: I have a problem with WebBrowser refresh function

    Hi,

    You could try this tick event in your timer3;

    vb Code:
    1. ' Skip refresh if about:blank is loaded to avoid removing
    2.     ' content specified by the DocumentText property.
    3.     If Not webBrowser1.Url.Equals("about:blank") Then
    4.         webBrowser1.Refresh()
    5.     End If
    Wkr,
    sparrow1

    If I helped you, don't forget to Rate my post. Thank you

    I'm using Visual Studio.Net 2003 and
    2005
    How to learn VB.Net Create setup with VB 2005 Drawing for beginners VB.Net Tutorials GDI+ Tutorials
    Video's for beginners

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Mar 2009
    Posts
    166

    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?

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Mar 2009
    Posts
    166

    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
  •  



Click Here to Expand Forum to Full Width