hello every one,
i ask for some help

i would like to write program that enables the user to insert a photo into the picture box by clicking on a button.

i used the following but it is bringing an error

pictureBox2.Image = Image.FromFile("path");

Thanks

Hi Obadiah1, welcome here. :)
Without knowing the exact nature of your error, we can do very little and only guess that your path does not lead to an image on your storage medium.

what error does it return? It works fine for me

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.