Results 1 to 3 of 3

Thread: Making a picture fit the picture box instead of the box fitting the picture.

  1. #1

    Thread Starter
    Hyperactive Member stilekid007's Avatar
    Join Date
    Apr 2005
    Location
    DUDE! I'm your neighbor! HELLO!!!
    Posts
    388

    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
    Quote Originally Posted by stilekid007
    I RATE ALL HELPFULL POSTS!

  2. #2
    Fanatic Member
    Join Date
    May 2004
    Location
    Granby, Qc, Canada
    Posts
    602

    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

  3. #3

    Thread Starter
    Hyperactive Member stilekid007's Avatar
    Join Date
    Apr 2005
    Location
    DUDE! I'm your neighbor! HELLO!!!
    Posts
    388

    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
    Quote Originally Posted by stilekid007
    I RATE ALL HELPFULL POSTS!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width