Jump to content

auto-sizing picture control


Mr.Wizard
 Share

Recommended Posts

Why can't you just use the same coordinate's that you used for the picture control for the picture itself? I don't really understnad what your saying, maybe tell me in a little more detail and I will help.

FootbaG
Link to comment
Share on other sites

I'm loading a picture and I don't know beforehand how big it is. I want the entire picture to show on the form, but if the picture control is smaller than the image it gets cropped.

I have a catapult. Give me all the money or I will fling an enormous rock at your head.

Link to comment
Share on other sites

Of course stretching the control to fit the image is one solution, but stretching the image to fit the control is the other. It might be nice to have a stretch property for the picture control, with possible settings None/ControlToImage/ImageToControl

I have a catapult. Give me all the money or I will fling an enormous rock at your head.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...