English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

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.

2007-03-20 00:57:05 · 3 answers · asked by yeahthatstheguy 1 in Computers & Internet Programming & Design

3 answers

What VB are you using? In VB.Net...
In the properties window set the "stretch Image" = true
During runtime...

PictureBox1.SizeMode = PictureBoxSizeMode.StretchImage

2007-03-22 03:07:55 · answer #1 · answered by Anonymous · 0 0

The picture is an object. You should be able to select it and drag a side or a corner.

2007-03-20 08:00:33 · answer #2 · answered by Kokopelli 6 · 0 1

In the properties window, there is an option labeled, "Stretch".
Set it to "True".

2007-03-20 08:06:41 · answer #3 · answered by Dave B. 4 · 1 0

fedest.com, questions and answers