Although we were able to use the Label control to display the animated gif of the fish, there is a better way to display pictures: the PictureBox.
- Start a new project and add a PictureBox control
to the form.
-
Right click on the computer and then select Save Image to save it to your computer.
- Select the PictureBox and then select the Image property and browse to the picture of the computer.
The image of the computer is too big for the PictureBox. We can solve this problem several ways:
- Use the handles (the small squares) to resize the PictureBox,
- change the SizeMode property to AutoSize,
- Change the Size property by typing in 150,150.
Tool Tips
When you want to know what a button on the toolbar is for, you move the mouse over the control and look at the tool tip that appears. For example, if you move the mouse over the green arrow on the toolbox, you see the tool tip "Start Debugging."

In the toolbox find the TooTip control

and add it to the Form. The ToolTip does not actually appear on the form, but in the area under the Form. Next, scroll through the properties for the PictureBox and find a new property called ToolTip on ToolTip1. Run the program and move the mouse over the picture of the computer to see the tooltip.
INDEX,
Controls,
Adding Pictures,
The PictureBox Control,
Tool tips and Naming controls,
List of Controls,
Hot SpotsNext lesson:
Writing Code in Visual Basic