Quick Question

Mets08123 Jan 23, 2011

  1. Me

    Mets08123 Newbie BANNED
    0/47

    Joined:
    Nov 6, 2010
    Messages:
    15
    Likes Received:
    3
    Trophy Points:
    0
    Gender:
    Male
    Console:
    Xbox
    I am currently trying to load a captcha image in a picture box from Twitter.. the current code I have is this:

    Code:
    Dim texts As New TextBox
            Dim allelements2 As HtmlElementCollection = WebBrowser1.Document.GetElementsByTagName("img")
            For Each webpageselement As HtmlElement In allelements2
                If webpageselement.GetAttribute("id").ToString.Contains("recaptcha_image") Then
                    texts.AppendText(webpageselement.GetAttribute("src"))
                    PictureBox1.Image = New System.Drawing.Bitmap(New IO.MemoryStream(New System.Net.WebClient().DownloadData(texts.Text)))
                End If
            Next
    What am I doing wrong?
     
  2. ghostcom

    ghostcom Newbie
    0/47

    Joined:
    Jan 13, 2011
    Messages:
    82
    Likes Received:
    1
    Trophy Points:
    0
    Location:
    Office Space - Cube 15
    Console:
    Xbox

Share This Page

Close