Reputation: 54100
I've an interface where user selects picture (using OpenFileDialog) and its shown in a fixed size picturebox. I want this picture to fit in the picturebox even if the resolution is high.
What property do I need to set inorder to let my image AutoScaleToFitIn the PicutreBox?
Upvotes: 6
Views: 9046
Reputation: 1038720
You could set the PictureBox.SizeMode property to StretchImage.
Upvotes: 13