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");
}
}
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment
It is the same account you read, post and publish with — and you will come straight back to this page.

Raj KumarPosted Apr 19, 2009, 6:30 PM
use line break to show in a good way