Julian, I thought I could set Size 0,0 and just make the Maximum Size 278, 264 (W,H) but that doesn't dynamically expand. Is there a way?
I'm working through the properties and will eventually jag it, and
understand what to do.
Bounds {X=536,Y=68,Width=278,Height=264}
ClientRectangle {X=0,Y=0,Width=276,Height=262}
ClientSize {Width=276, Height=262}
DisplayRectangle {X=0,Y=0,Width=276,Height=262}
None of these is helpful.
_____
Ian Thomas
Victoria Park, Western Australia
_____
From: [email protected] [mailto:[email protected]]
On Behalf Of Julian Kula
Sent: Wednesday, November 16, 2011 11:00 AM
To: ozDotNet
Subject: Re: PictureBox Image sizing / border question
Have you thought about making the picture box size dynamic? i.e. having a
"space" on your form in which the picturebox can expand in or shrink and
dynamically setting the size and centering based on the size of the photo
the user uploads?
just a thought. when i had this problem, i drew my own bitmap when an image
was uploaded and filled in any blanks with black.
On Wed, Nov 16, 2011 at 1:20 PM, Ian Thomas <[email protected]> wrote:
WinForms question. I have a PictureBox, SizeMode: Zoom, anchored,
BorderStyle: FixedSingle into which user loads an image. Since images are
not always the same aspect ratio as the PictureBox, the border does not
always fit the loaded image. Is there a way to make it do so?
_____
Ian Thomas
Victoria Park, Western Australia
<<image001.jpg>>
