[VB] resizing image in picturebox
Solved
pulpul
Posted messages
63
Status
Member
-
omega081 -
omega081 -
Hello,
I display a selected image in a combo box under VB6. However, I cannot resize the displayed image if it is larger than the picture box. Does anyone know how to set the size of the image to display?
Thank you in advance
I display a selected image in a combo box under VB6. However, I cannot resize the displayed image if it is larger than the picture box. Does anyone know how to set the size of the image to display?
Thank you in advance
Configuration: Windows XP Internet Explorer 7.0
5 answers
-
Picture1.PaintPicture Image1.Picture, 0, 0, Picture1.Width, Picture1.Height
Good luck :oD -
Thank you for your help.
I indeed used an Image control with the stretch option. The picture box was such a hassle!! ;)
Image1.Stretch = True
Image1.Picture = LoadPicture(selectedfile)
Thank you for everything!! -
Except that in certain scenarios where the image cannot solve this problem because it does not have the expected functionalities for further processing, we still need to find a solution...
Alright, I'll give you the solution:
Picture1.PaintPicture Picture1.Picture, 0, 0, Picture1.Width, Picture1.Height
-
-
Hello Pulpul,
Why not use the Image control instead?
;o)