Show selected pics by a gui form run time...

Create a gui from take a picturebox and a button tyep this code in the button_click event...___: OpenFileDialog od = new OpenFileDialog(); DialogResult dr = od.ShowDialog(); if (dr == DialogResult.OK) { filename = od.FileName.ToString(); Bitmap bmp = new Bitmap(filename); pictureBox1.Image = bmp; } else { MessageBox.Show("not selected"); } }
Ebook Download
View all
Learn
View all