Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
DialogResult dr = openFileDialog1.ShowDialog();//error is here if (dr == DialogResult.OK) { label6.Text = openFileDialog1.SafeFileName; pictureBox1.BackgroundImage = Image.FromFile(openFileDialog1.FileName); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)