How do I load a picture into the PictureBox control?

To load a Picture into the PictureBox control drag a PictureBox control and a Command Button from the Toolbox. When you click the Command Button, the picture you specified will be loaded into the Picturebox. The following code is a demonstration -

PictureBox1.Image=Image.FromFile("C:\images\image.gif") //Assuming you have a folder named images in C: drive and a gif image in that

Need Help? Contact Us.

Log in

*
*

Forgot password?

*

New User

*
*
*
*