Adapting the size of a jpg to a picture box
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
[email protected]
Re: Adapting the size of a jpg to a picture box
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