The PictureBox control is a used to display an image. The PictureBox control has very limited functionality. The control always displays the image in the upper-left corner of the control. The PictureBox control does not provide any way to resize the image so that it can stretch to fill the control.
The PictureBox control exposes the Image property, which represents the current image the control will display. Let's discuss three ways to load an image into the PictureBox control.
An image can be loaded into the PictureBox by loading the image from a file. The following code demonstrates how this is done:
C# pictureBox1.Image = new Bitmap(@"\Program Files\PictureBoxControl\tinyemulator_content.jpg"); VB pictureBox1.Image ...