How do you make an Jpeg, bmp, gif fit on your form?
How do you resize them to fit your available area on the form?
Help please
Printable View
How do you make an Jpeg, bmp, gif fit on your form?
How do you resize them to fit your available area on the form?
Help please
I'm guessing you are using a PictureBox to display your image? Don't! Use the Image control. It rescales the image automatically.
Hope this helps
Like this:
;)Code:Private Sub Form_Resize()
Image1.Stretch = True
Image1.Width = Me.Width
Image1.Height = Me.Height
End Sub
it's not what I meant
I meant to make it fit a certain area, with the image control my picture is getting all screw up,
I want it to fit the size of my form nad when I use the strech I'm losing some of the picture and it's getting blown
up too much
use a IMAGE CONTROL instead of a PICTURE BOX CONTROL. it will resize the picture and not the box accordingly.
go back and read my last posting, I'm using an image control, I just switch to a pic box five minutes ago and use the paintpicture command on it and seems to work unless picture is really big and then it cuts off this also happens with the image control. Thanks for the suggestion anyways
image box worked for me. but at least you got it working.
IT cut's off the picture because it doesn't fit into the picturebox which can't be larger than the screen resolution.
To solve this problem you may have to load the picture directly into a DC and use stretchblt blit it on the form