C# image control

Hi
I am using image control in winforms C#.

I have varying size of images which exceed the control size i have set. Both horizontally as well as vertically.

Can any of you help me with code which can resize the image in runtime to fit the image control
GRChandrashekarAsked:
Who is Participating?
 
Carl TawnConnect With a Mentor Systems and Integration DeveloperCommented:
That shouldn't matter. Setting the SizeMode property to Stretch (rather than Zoom in my last post) will scale the image down to match the size of the PictureBox.
0
 
Carl TawnSystems and Integration DeveloperCommented:
If you mean a PictureBox control then you can set the SizeMode property to Zoom which will then size the image to match the control.
0
 
GRChandrashekarAuthor Commented:
Yes picture box. SizeMode does not work is pic is bigger than control size
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.