
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

->openFileDialog us to browse window and select image. ->pictureBox1 is area where picture display. code behind button::
private void button1_Click(object sender, EventArgs e) { DialogResult dr = openFileDialog1.ShowDialog();//To browse file after clicking browse button if (dr == DialogResult.OK)//check if any image selected or not { pictureBox1.Image = Image.FromFile(openFileDialog1.FileName);//give image path from selected image