Adjusting size in a picturebox
-
Hi, Can be an easy one for you. :) When I tried to insert a big picture into a small picture box, only a small part of the picture was shown in the box. How can I display the whole picture into the picturebox without changing the box size.
You can set the
SizeMode
property:PictureBox1.SizeMode = PictureBoxSizeMode.StretchImage;
See here for details: http://msdn2.microsoft.com/en-us/library/system.windows.forms.pictureboxsizemode.aspx Hope this helps
Regards Wayne Phipps ____________ Time is the greatest teacher... unfortunately, it kills all of its students View my Blog
-
You can set the
SizeMode
property:PictureBox1.SizeMode = PictureBoxSizeMode.StretchImage;
See here for details: http://msdn2.microsoft.com/en-us/library/system.windows.forms.pictureboxsizemode.aspx Hope this helps
Regards Wayne Phipps ____________ Time is the greatest teacher... unfortunately, it kills all of its students View my Blog