Pergunta

I have a site (http://valfajr5.rozblog.com) which has a CAPTCHA image which I want to get it into a picture box (at the run time program). I have this CAPTCHA:

<img width="67" height="20" src="/include/captcha/cap7.php?name_sess=link_auto" title="کد امنیتی" alt="کد امنیتی" id="im_link">

How should I do this using VB.NET?

Foi útil?

Solução

I Have find the code!

Dim elem As HtmlElement = WebBrowser1.Document.GetElementById("im_sec")
   Dim cap As Object = WebBrowser1.Document.DomDocument.bOdy.createControlRange()
   cap.Add(elem.DomElement)
   cap.execCommand("Copy")
   PictureBox1.Image = My.Computer.Clipboard.GetImage
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top