Results 1 to 4 of 4

Thread: How do I fit an image into a picture box?

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2002
    Location
    Orlando, FL
    Posts
    5

    Question How do I fit an image into a picture box?

    New guy here so please be understanding. I am loading a jpg, gif, or bmp into a picture box. I get about 25% of the image displayed. Is there a way to fit the image into the picture box that I have put on my form. I figure you graphic guys would know more about this.
    Regards,
    Bob Robey
    Bob Robey

  2. #2
    Hyperactive Member GingerNut's Avatar
    Join Date
    May 2002
    Location
    Are those my feet?
    Posts
    372
    You could use the Image box instead, then just stretch to fit.
    How is it one careless match can start a forest fire, but it takes a whole box to start a campfire?

    Global Freelancers | Web Traffic Analyser

  3. #3
    Addicted Member
    Join Date
    Dec 2001
    Location
    Great White North, ey?
    Posts
    202
    Just set the picture box property "Auto Size" to "True" and the picturebox will take the size of the picture.

  4. #4
    PowerPoster
    Join Date
    Aug 2000
    Location
    IN SILENCE
    Posts
    6,441

    Well

    Either method will work here. Or you just using it for display purposes, or will you have to save the image at some point?
    Remaining quiet down here !!!

    BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....

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