Private void button1_Click (object sender, EventArgs e)
{
DialogResult Dr=openFileDialog1. ShowDialog (this);
If (Dr==DialogResult. OK)
{
Try
{
PictureBox1. Image=Image. FromFile (openFileDialog1 FileName);
FileStream fs=new FileStream (openFileDialog1. The FileName, FileMode. Open);//an unusual
BinaryReader br=new BinaryReader (fs);
}
Catch Exception (err)
{
MessageBox. Show (err. Message);
}
}
}
This is the interface
This is an error message box