ON_LOAD:
Binding binding = new Binding("Image", myRecord.Tables[0], "IMAGE", true);
this.pictureBox1.DataBindings.Add(binding);
ON_IMAGE_CHANGE:
OpenFileDialog openFileDialog1 = new OpenFileDialog();
openFileDialog1.Filter = "JPEG files|*.jpg|Bitmap files|*.bmp|GIF files|*.gif|All files|*";
DialogResult mResult = openFileDialog1.ShowDialog(this);
if (mResult == DialogResult.OK)
{
myImageFile = openFileDialog1.FileName;
this.pictureBox1.Image = Image.FromFile(myImageFile);
}
|