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;
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top