Jump to content

Resize image to fit a picturebox


Recommended Posts

Guest khalidnaseem
Posted

Hi Guys,

I need to display images of different sizes in a picturebox. I am developing for smartphone using CF 2.0. What I need is exactly like when from the My Pictures on a smartphone when we click View we are able to view the complete image within a small picture box even though the original size of the picture may be larger.

How it be done. Please help...

Thanks

Khalid

  • 1 month later...
Guest Croccy22
Posted

Set the sizemode property of the picturebox to StretchImage. This should make the picture fit inside the box.

Matt.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.