Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 42443

setting picturebox.image with valid image, nothing happens

$
0
0
I have some code that generates an image, and apparently that works fine. I can save the image and open it in paint, for example, and it looks correct. However, when I set my picturebox's image property to this image, nothing changes. I don't see the image.

C# Code:
  1. Image temp = MapItem.Image;
  2. temp.Save(frmd.Selected + ".bmp", System.Drawing.Imaging.ImageFormat.Bmp); //this works fine, I can load this .bmp file and see the image
  3. picMapImage.Image = temp; //this seems to do nothing

Viewing all articles
Browse latest Browse all 42443

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>