[RESOLVED] resize picture not bigger than screen
hi all
im trying to load my picture up and resize the picture so that it is not bigger than the screen i have tryed a couple of things with no look any help on this would be great
Code:
With Me
.ScaleMode = vbPixels
End With
'Set up picturebox
With pic
.ScaleMode = vbPixels
.AutoRedraw = True
.AutoSize = True
.DrawMode = vbInvert
.DrawStyle = vbDashDot
.MousePointer = vbCrosshair
.Picture = LoadPicture("C:\temp.jpg")
End With
Re: resize picture not bigger than screen
You can stretch the pic control, using the stretch property. So it always fits in the width and height of the control.
Re: resize picture not bigger than screen
thanks for that will have a play and see how i go