Why doesn't Autoboxing include PictureBox.Image?

I have an interface in which the user selects an image (using OpenFileDialog) and its image is displayed in a box with a fixed size. I want this picture to fit the image, even if the resolution is high.

What property needs to be set in order to allow my AutoScaleToFitIn PicutreBox image?

+6
c # winforms
source share
2 answers

You can set the PictureBox.SizeMode property for StretchImage .

+12
source share

Look at the SizeMode property

0
source share

All Articles