Sign in to follow this  
Followers 0
khalidnaseem

Resize image to fit a picturebox

2 posts in this topic

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

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.

Matt.

0

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  
Followers 0

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