tags:

views:

623

answers:

3

I need to be able to place the captcha image into a picturebox on my form, the reason being that I need to zoom the captcha image for the visualy impaired users.

It appears to be such a simple task, just take the image from the web page and put it into a picturebox but it is turning out to be not so simple. i have WebBrowser control in form and for registration in one of site, i need captcha image in picture box. problem is that captcha image is generated by JavaScript, when java script runs then it gives url of captcha image. but every time when java script runs, captcha image goes change. i just want that captcha image which is on WebBrowser control current page.

Any help would be greatly appreciated.

A: 

Would it be possible to use reCaptcha.net instead? You register for free, add the script to your page and then they do the rest. They may not have zooming for the visually impaired, but they do have text-to-speech. No sense in reinventing the wheel if you don't have to. Of course you'd need access to the internet on your page so this could be a problem if your site is an intranet or private network of some sort. Hope that helps.

Notorious2tall
i think, you have not read my message carefully. ok i am explaining again,if you are going to create account in facebook.com, captcha will come there. if you see the page source then you can not get any specifice captcha url, you only get one link, and this links calls java script. whenever java script runs captcha url comes to webpage.
prakash.panjwani
Sorry, didn't know that picturebox and WebBrowser control == facebook. If you're asking a question related specifically to Facebook, please say so in your question.
Notorious2tall
A: 
prakash.panjwani
+1  A: 

You can copy the image to the clipboard and read from there. Alternatively you can parse the page to get the image's URL and see if you can dig the image file out of the cache

[1]: http://How To Programmatically Copy an IMG Element to the Clipboard

Sheng Jiang 蒋晟