Click to See Complete Forum and Search --> : Adapting the size of a jpg to a picture box


Federica Pavese
March 2nd, 1999, 08:44 AM
Hi!

How can I to adapt the size of a jpg to a picture box?

I have a some jpg with differents sizes.

Some images are bigger than the picture box, some are smaller, some are widther, etc.

Can I to adapt the size or can I to use scrollbars?


Thanks in advance!


Federica

fedepavese@bolsamza.com.ar

Chris Eastwood
March 3rd, 1999, 05:10 PM
Hi


I'm not sure about a picture box, but if you use an Image control with vb then you can set the Stretch property to True before you load the picture.


eg.


Image1.Stretch = True

Set Image1.Picture = LoadPicture("C:\MyPic.JPG")


Regards


Chris Eastwood


CodeGuru - the website for developers

http://www.codeguru.com/vb