Click here to Skip to main content
15,849,829 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am developing a windows application.i have a picture box.according to end user preference picture box size may increase or decrease. image size should same as picture box to do that at runtime and also how to delete image from picture box.can any one help?

1 solution

You have to set SizeMode as stretch and then if you change the width and height of PictureBox, the image size will be same as PictureBox Size.

Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900