Jump to content


Photo

Resize image to fit a picturebox

- - - - -

  • Please log in to reply
1 reply to this topic

#1
khalidnaseem

khalidnaseem

    Newbie

  • Members
  • Pip
  • 3 posts
  • Devices:Windows mobile 5.0
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

  • 0

#2
Croccy22

Croccy22

    Enthusiast

  • Members
  • PipPipPip
  • 230 posts
  • Location:North Devon
  • Devices:M3100, Diamond, TYTN2, G1
Set the sizemode property of the picturebox to StretchImage. This should make the picture fit inside the box.

Matt.

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users