• Have Any Question?
  • contact@eitworld.com

csharp.net picturebox control





    • PictureBox control is used to add the picture on the Windows form.
    • You can place a PictureBox control on the form by drag and drop it from the toolbox. The PictureBox control looks like as follows:

picturebox-control

Properties of PictureBox Control

Some of the commonly used properties of PictureBox Control are listed below in the Table:

picturebox-control

Methods of PictureBox Control

Some of the commonly used methods of PictureBox Control are listed below in the Table:

picturebox-control

Events of PictureBox Control

Some of the commonly used Events of PictureBox Control are listed below in the Table:

picturebox-control

Example
    • Add a PictureBox control from the toolbox to the form.
    • Now select the PictureBox control in Form and go to its properties window and click on the ellipse button (…) beside the Image option.
    • The Select Resource Windows will be opened in front of you. You can select an image from this window click on the Import button.
    • The image gets added in the Project resource file. Now click on the OK button to display the selected image in the form.
    • This will open a dialog box. Now select an image from your computer.
    • The selected image will be inserted in the form as follows:

picturebox-control

    • Now run the application by pressing F5 key, this will show the following output:

picturebox-control



Real Time Web Analytics