
Resizing JPG files in Picture Control VB5
That does it the other way round (it sizes the box to fit the picture). Here
is one way to resize the picture to fit the box:
Picture1.Picture = LoadPicture("c:\mypic.jpg")
Picture1.AutoRedraw = True
Picture1.PaintPicture Picture1.Picture, 0, 0, Picture1.ScaleWidth,
Picture1.ScaleHeight
Picture1.Picture = Picture1.Image
Mike
Quote:
>> Hi there,
>> Can anyone tell me how a JPG file can be automlatically resized to the
>> HEIGHT and WIDTH
>> of a Picture Control in Visual Basic 5.
>> Robbert de GROOT
>> Paris/France
>Try setting the Autosize Property to True.