How to Use PictureBox Control in Visual Basic

Written by misty s. bledsoe
  • Share
  • Tweet
  • Share
  • Pin
  • Email
How to Use PictureBox Control in Visual Basic
The "PictureBox" control allows you to insert pictures as you code. (Manos en teclado 40409 image by pablo from

The "PictureBox" control within the Visual Basic computer programming language allows you to insert images into your software application as you build it. Both the Microsoft Visual Basic Express and the Microsoft Visual Studio.NET developer environments come with preinstalled controls, like the "PictureBox" control that you can use to create robust and diverse software applications. The Microsoft Visual Basic Express package is a free download available from and a direct link can be found in the reference section of this article.

Skill level:
Moderately Challenging

Other People Are Reading

Things you need

  • Visual Basic Express installed on a PC
  • Visual Studio.NET installed on a PC (optional)

Show MoreHide


  1. 1

    Open either Visual Basic Express or Visual Studio.NET depending on which developer environment you have.

  2. 2

    Open the project you're working with or create a new one. To create a new one, click on "Create" next to the word "Project" in the upper left-hand corner of the screen. A new window pops up where you choose the type of project. Click on the "Windows Form Application," as this will be the easiest for this example, although the control works just fine in any of the other project types. Type a name for your project in the "File Name" box below and hit "OK" when you're finished. A blank form appears.

  3. 3

    Locate the word "View" along the top menu choices and click on "Tool Box" if your toolbox is not visible.

  4. 4

    Scroll down the toolbox and locate the "PictureBox" control. Click and drag it to the blank form. Let go of the mouse when you've positioned the "PictureBox" control where you want the picture to be on the form.

  5. 5

    Click once on the "PictureBox" control within the form. Navigate to the right-hand side of the screen and choose the "Properties" tab. If it is not visible, click on "View" and then "Properties."

  6. 6

    Scroll through the "Properties" tab until you find "Image." The default setting will say "none" next to it with a square with a "..." in it. Click on the three dots. A window will open, allowing you to insert your chosen image into the picture box.

  7. 7

    Choose "Local Resource." Click on "Import." A window will open where you can navigate to the location of the picture you want to insert into the "PictureBox" control. Navigate to the location of the picture. Click on the picture file and press the "OK" button.

  8. 8

    Either resize the "PictureBox" control box itself to see the entire picture on the form, or readjust the size by typing in smaller numbers in the "Size" settings of the "Properties" tab.

Tips and warnings

  • Clicking on the small arrow pointing to the right, found on the "PictureBox" control itself, allows you to choose the type of style of the image, to keep it "Normal," "Centered" or "Stretched." You can change the picture anytime by clicking on the "Properties" tab and changing the "Image" settings again.
  • If resizing the "PictureBox" border does not solve the problem of viewing the picture properly or if you are restricted to a certain size of "PictureBox" size and the picture does not fit, you will need to resize the picture file itself and then reattach the picture to the "PictureBox" control.

Don't Miss

  • All types
  • Articles
  • Slideshows
  • Videos
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the site, you consent to the use of cookies. For more information, please see our Cookie policy.