PictureBoxSizeMode:StretchImage not working

LBaliao

Member
Hello.

I need to display images into a picturebox. I don't want the picturebox itself to resize so I set AutoSize = FALSE. I set the sizemode value to "StretchImage" before I load the image file. The image is slightly bigger than the picturebox. I thought by setting sizemode to "StretchImage" it should automatically shrink the image so that the whole image is displayed in the picturebox. Applies to if the image size is smaller than picturebox then it should stretch the image.

Appreciate your help and input.

Thanks,
Liza
 
Back
Top