Loading pictures from storage

  • Thread starter Thread starter Geoff Callaghan
  • Start date Start date
G

Geoff Callaghan

I have a program that uses many copies of the same picture. However, it
seems that each picturebox keeps it's own copy. How can I load the picture
at runtime from the flash disk? The PictureBox control does not seem to
have this feature.
 
Image myImage = new
Bitmap(Assembly.GetExecutingAssembly().GetManifestResourceStream(...));
pictureBox1.Image = myImage;
....
pictureBox2.Image = myImage;
 
Back
Top