either a path or a url to the image file
dickersonka
Veteran Poster
1,175 posts since Aug 2008
Reputation Points: 130
Solved Threads: 143
Or you might open a filedialog in your buttonclick like this :
OpenFileDialog dlg = new OpenFileDialog();
dlg.Title = "Open bitmap or jpeg.";
//dlg.Filter = "jpg files (*.jpg);*.jpg;*.* | bmp files (*.bmp); *.bmp";
if (dlg.ShowDialog() == DialogResult.OK)
{
this.fotoPictureBox.Image = new Bitmap(dlg.OpenFile());
}
dlg.Dispose();
ddanbe
Senior Poster
3,829 posts since Oct 2008
Reputation Points: 2,070
Solved Threads: 661
Several ways to do it, here is an article on loading image files . Just make sure to dispose of new objects properly depending on how you load the images
vckicks
Junior Poster in Training
58 posts since Jun 2008
Reputation Points: 11
Solved Threads: 9