Friday, November 19, 2010

How do you strech a picture within a visual basic picture box?

I load the an image into a picture box through the code. I want to strech the image so that it will fill up the entire picture box i have set for it. No i don't want the box to change size but the dimensions of the picture.How do you strech a picture within a visual basic picture box?
What VB are you using? In VB.Net...

In the properties window set the ';stretch Image'; = true

During runtime...



PictureBox1.SizeMode = PictureBoxSizeMode.StretchImageHow do you strech a picture within a visual basic picture box?
The picture is an object. You should be able to select it and drag a side or a corner.
In the properties window, there is an option labeled, ';Stretch';.

Set it to ';True';.

No comments:

Post a Comment