Windows Application with Image from URL

  • Thread starter Thread starter Scott Durrett
  • Start date Start date
S

Scott Durrett

Here's my problem. I have a Windows application that has a picturebox. I
need to populate the picturebox from a image from a URL. Does someone know
how to do this? I don't have the luxury of the imageURL property that I
have from a web application.

thanks in advance.
Scott
 
Hi,

Use WebRequest to download the image, and create the imag from the stream
you get:

Bitmap b = new Bitmap( WebRequest.Create(
"http://....").GetResponse().GetresponseSTream() );


cheers,
 
Back
Top