Results 1 to 4 of 4

Thread: Getting Links off of page error

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2009
    Posts
    71

    Getting Links off of page error

    I am creating a program and have the following code to extract the URL's off of a webpage and put them in a richlistbox. This is only from one page. The problem is that I am only getting one URL into the listbox, instead of all of them off of the page.

    Here is what I have so far:

    Code:
    Private Sub Timer3_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer3.Tick
            Dim str1 As String = WebBrowser1.DocumentText
            RichTextBox1.Text = str1
            Dim web As String = str1
            Dim radar As String = web.Remove(0, web.IndexOf("/members/earn/offers/go/")).Remove(0, 1)
            radar = radar.Remove(radar.IndexOf("target"))
            RichTextBox1.Text = radar
            Timer3.Stop()
        End Sub
    Any help would be great

  2. #2
    Addicted Member
    Join Date
    Feb 2008
    Location
    XP & Vista
    Posts
    181

    Re: Getting Links off of page error

    Try your code inside the

    Code:
    private sub webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
    'Here
    End sub
    More tips here : Link
    _____________________________________________
    Regrads,
    kpmsivachand

    Don't walk in front of me, I may not follow; Don't walk behind me, I may not lead;
    Walk beside me, and just be my friend.

    Need Reviews: 1. PDF Split, PDF Merge, PDF Encrypt, PDF Decrypt and PDF Watermark

    Need Reviews: 2. Folder Locker | Lock Folder | File Locker | Locker | Encrryption | Encrypt

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Aug 2009
    Posts
    71

    Re: Getting Links off of page error

    The thing is I need to have it under a timer. Since there is more code to happen before and after this, i need it to go in a row.

    Any one else can help?

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Aug 2009
    Posts
    71

    Re: Getting Links off of page error

    Can some one please help me, I can't continue with my program till I figure out the problem.

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