C# : // Create the requests.
WebRequest requestPic = WebRequest.Create(picUri);
pnlMapa.BackgroundImage = webImage;
VB.NET :
' Create the requests.
Dim requestPic As WebRequest = WebRequest.Create(picUri)
Dim responsePic As WebResponse = requestPic.GetResponse()
Dim webImage As Image =
Image.FromStream(responsePic.GetResponseStream())
pnlMapa.BackgroundImage = webImage
With those few line of code you can very fast get any
Internet image in your (application web or windows) :
0 comments:
Post a Comment