Is an image with images possible?
Hi I want to set a dynamic path to my image window in winforms. Is it possible to do this
My image is here something like
http://www.indianorphanages.net/images/india-political-map.gif
now i want to bind it to image field (winforms)
Is it possible?
+2
Nagu
source
to share
3 answers
Try:
pictureBox1.ImageLocation =
"http://www.indianorphanages.net/images/india-political-map.gif";
+11
TheVillageIdiot
source
to share
To update the image window from a file, you can use the method Load
:
pictureBox.Load(filename);
Through:
Load (String) Sets the ImageLocation to the specified URL and displays the specified image.
+3
ChrisF
source
to share
Just set the ImageLocation property like this:
pictureBox1.ImageLocation = "http://www.indianorphanages.net/images/india-political-map.gif";
+2
Colin mackay
source
to share