Quick Question

Discussion in 'C#' started by Mets08123, Jan 23, 2011.

  1. Me

    Mets08123 Newbie BANNED
    0/47

    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

Share This Page