How to display an image hosted in my App?

0

I would like to display a promotional image within a PicutreBox in my app, but this image will vary depending on the promotion the Company is making.

Is there any code that PictureBox shows a certain image that is hosted somewhere?

Something like HTML, when we need to pull an image from a Host or FTP, we use:

src="img/logobranco.png"

Some C # code that does the same function?

    
asked by anonymous 18.01.2017 / 20:09

1 answer

4

Just set the ImageLocation property of PictureBox to the image address.

Ex:

pictureBox1.ImageLocation = "https://www.site.com/images-winforms/promocao-principal.jpg";
    
18.01.2017 / 20:29