Subject: Picture Box proportional to original image.
Posted By: watashi Post Date: 4/16/2008 8:05:19 PM
Hello,

 I have 3 things to consider here, one is source image, form and picture box.

 My picture or image on the form must be proportional in size to the original image.This image on form should be proportional even during resizeing of the form.

For example if the origianal image is square in shape, my image on form must always be square .

if original image is rectangle with width > height by 10 times, my image on form ,nothing but

pictureBox1.size.width / picturebox1.height = 10.... even on RESIZING. How to do it.

Thanks in advance.

Reply By: robzyc Reply Date: 4/17/2008 2:30:39 AM
Hi watashi,

If you make the PictureBox to the original size you want it (square and in proportion to the original form size), set its Anchor property to all sides and set its SizeMode to Zoom, I think that should have the desired effect.

Rob
http://robzyc.spaces.live.com

Go to topic 70665

Return to index page 1