Question

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?

Was it helpful?

Solution

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
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top