Picture Box
-
:confused:How to load an image from a url into a PictureBox. Thank's
-
:confused:How to load an image from a url into a PictureBox. Thank's
-
:confused:How to load an image from a url into a PictureBox. Thank's
string sURL="www.MomComputerGeek.com"; System.Web.HttpRequest objRequest = new HttpRequest("",sURL,""); Stream objStream = objRequest.InputStream; PictureBox1.Image.FromStream(objStream);
------------------------------- Joan MomComputerGeek.com -
You have to save it as a Bitmap,then set the Image property of PictureBox to it.Something like this: picturebox.Image = Bitmap.FromFile(urlpath); Mazy No sig. available now.
Damn.. yours is much nicer than what I posted! :sigh: ------------------------------- Joan MomComputerGeek.com
-
Damn.. yours is much nicer than what I posted! :sigh: ------------------------------- Joan MomComputerGeek.com
-
string sURL="www.MomComputerGeek.com"; System.Web.HttpRequest objRequest = new HttpRequest("",sURL,""); Stream objStream = objRequest.InputStream; PictureBox1.Image.FromStream(objStream);
------------------------------- Joan MomComputerGeek.comThank you for the Code, it's right BUT I'm not using ASP.NET I'm using Windows Forms and the class System.Web.HttpRequest is not valid. Do yuo know how in Windows Forms (Windows Application).
-
string sURL="www.MomComputerGeek.com"; System.Web.HttpRequest objRequest = new HttpRequest("",sURL,""); Stream objStream = objRequest.InputStream; PictureBox1.Image.FromStream(objStream);
------------------------------- Joan MomComputerGeek.comI find this code: string sURL="http://localhost:8080/cercalia/img/dispositius\_home.gif"; System.Net.WebClient RequestURI = new System.Net.WebClient(); System.IO.Stream objStream = RequestURI.OpenRead(sURL); pictureBox1.Image = Bitmap.FromStream(objStream); This Code Works OK. Thank you for all.
-
Thank you for the Code, it's right BUT I'm not using ASP.NET I'm using Windows Forms and the class System.Web.HttpRequest is not valid. Do yuo know how in Windows Forms (Windows Application).
Josep Restoy wrote: class System.Web.HttpRequest is not valid I think you would just need to reference the System.Web library. ------------------------------- Joan MomComputerGeek.com