05-22-2010, 05:59 AM
Heres an example of how you can take an image from a website and insert it into a PictureBox on your application.
getimage Function:
Using the Function: (Under Button_Click)
getimage Function:
Code:
Function getimage(ByVal url As String) As Image
Using w As New Net.WebClient
Using s As New IO.MemoryStream(w.DownloadData(url))
Return Image.FromStream(s).Clone
End Using
End Using
End Function
Using the Function: (Under Button_Click)
Code:
PictureBox1.Image = getimage(http://www.IMAGE-URL.com)