Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Picture Box image source is it possible?

Hi I want to set dynamic path to my picture box in winforms. Is it possible to do like this

my image is here some thing like

http://www.indianorphanages.net/images/india-political-map.gif

now I want to bind it to picture box (winforms)

Is it possible?

like image 494
Nagu Avatar asked Nov 25 '25 23:11

Nagu


2 Answers

Try:

pictureBox1.ImageLocation =
                "http://www.indianorphanages.net/images/india-political-map.gif";
like image 117
TheVillageIdiot Avatar answered Nov 28 '25 11:11

TheVillageIdiot


To update a picture box from a file you can use the Load method:

pictureBox.Load(filename);

From the help:

Load(String) Sets the ImageLocation to the specified URL and displays the image indicated.

like image 36
ChrisF Avatar answered Nov 28 '25 11:11

ChrisF