In html I just do <img src="x.jpg" width="1px" height="2px">
how about in vb.net. Is there an easy way to do this. When you are viewing the image through the picture box
views:
13answers:
1
+2
A:
How do you display the image? If you load an image into the Image
property of a PictureBox
you can use the SizeMode
property to stretch the image to the size of the PictureBox. You can then set the width and height of the PictureBox.
PictureBox1.Load("image.png")
PictureBox1.SizeMode = PictureBoxSizeMode.Stretch
PictureBox1.Size = New Size(width, height)
Konrad Rudolph
2010-09-28 14:38:45
thanks for the link
2010-09-28 14:42:57