"Phil" <psfelice (AT) aol (DOT) com> wrote
Quote:
When I open a file such as a JPG to display in a pictureBox the image is
very large and one only sees a small part of the picture.
How can I get the picture to fit in the pictureBox so that bthe whole
picture is shown?
Thanks,
Phil |
Check the PictureBox SizeMode property. I believe the setting you want is
StretchImage, which resizes the image to display fully in the PictureBox as
you size it. The default setting is Normal, which simply displays whatever
part of the image fits in your PictureBox. OTOH, the Autosize setting
resizes the PictureBox to accommodate the selected image.
Hope this helps.
--
Peter [MVP Visual Developer]
Jack of all trades, master of none.