Sign in to follow this  

Resize image to fit a picturebox

Recommended Posts

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...



Share this post

Link to post
Share on other sites

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


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

MoDaCo is part of the, © Paul O'Brien 2002-2016. MoDaCo uses IntelliTxt technology.