0

Hello, I use Visual Basic 5 PRO and would like to know how to grab an image from a weblink which has been copied to the Windows Clipboard from google images and then display the image as a thumbnail into a image control on my form.

For example, I search google images for "computer" and I see a thumbnail I like, I select it twice to see the picture in my browser, I copy the URL from my browsers address bar to the Windows clipboard as shown below...

http://webserver.mcl.org/images/computer.gif

How can I load the "computer.gif" directly from this URL into my image control on my form using VB5 code as a thumbnail please?

I wish to get the image directly from the URL, NOT from copying the picture from my browser to the Windows Clipboard.

Thanks for any help

Cheers

4
Contributors
3
Replies
4
Views
10 Years
Discussion Span
Last Post by CsharpChico
0
private Image ImageFromClipboardText
        {
            get 
            {
                WebRequest req = WebRequest.Create(Clipboard.GetText());
                WebResponse resp = req.GetResponse();
                return Image.FromStream(resp.GetResponseStream());               
            }
        }
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.