Making a picture fit the picture box instead of the box fitting the picture.
Hello,
I was wondering if anyone could tell me how to make a picture fit the picture box instead of the box fitting the picture. So I would want the picture to get smaller like the image preview on windows xp, when you click once on a pic and it shows the details and a small form preview of the pic yet not disformed (i.e NOT STRECHED)
Can someone show me how to do this?
Thank you and have a great day!
Stilekid007
Re: Making a picture fit the picture box instead of the box fitting the picture.
I don't think you can do it with a PictureBox, but instead, if you use an ImageBox, you can do it by setting the Stretch property to True
Re: Making a picture fit the picture box instead of the box fitting the picture.
I already tried that. Setting the strech to true isn't what I want because that makes it skinny and all the objects are streched.
If it can't be done with a pic box, how did XP get it to do it with there little image preview. And another program (Incredimail) which I believe was programed with VB has the same type of feature.
Ok, here is another option.
VB has this commponent called Preview 1.0 Type Library which has the Windows picture and fax viewer system.
If you add it to a program it will put a Windows picture and fax viewer on the program.
The only problem is how do I load the pictures into it?
Thanks for anyones replys!
Stilekid007