i want to put an image to a picturebox when i click a button, the iage does not apear
this is the code i'm using:
private Bitmap MyImage ;
private void button9_Click(object sender, System.EventArgs e)
{
// Sets up an image object to be displayed.
if (MyImage != null)
{
MyImage.Dispose();
}
//openFileDialog1.ShowDialog();
MyImage =
new Bitmap(@"c:\temp\print.bmp");
pictureBox1.Image = (Image) MyImage ;
pictureBox1.Refresh();
}
can someone help....
Jorge Rodrigues