dim imgURL as string = [URL to image file]
dim c as System.Net.WebClient = New System.Net.Webclient
dim s as IO.Stream = c.openread(imgURL)
dim imgTemp as image = System.Drawing.Image.FromStream(s)
'proof:
picturebox1.image = imgTemp
s.close
c.dispose
c = nothing
That should get the image, adding it dynamically to an Imagelist would be
here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlr
fsystemwindowsformsimagelistimagecollectionclassaddtopic.asp
Hope that helps
Robert Smith
Kirkland, WA
www.smithvoice.com
> How can I add an image to an imagelist where I have only the URL of the
> image??