50 Part I Getting Started with Microsoft Visual Basic 2010
- Click OK.
The PayCoins photo is loaded into the picture box. Because the photo is relatively small
(24 KB), it opens quickly on the form.
- Resize the picture box object now to fix any distortion problems that you see in the
image.
I sized my picture box object to be 144 pixels wide by 146 pixels high. You can match
this size by using the width and height dimensions located on the lower-right side
of the Visual Studio IDE. (The dimensions of the selected object are given on the
lower-right side, and the location on the form of the object’s upper-left corner is given
to the left of the dimensions .)
This particular image displays best when the picture box object retains a square shape.
Note As you look at the picture box object, you might notice a tiny shortcut arrow called
a smart tag near its upper-right corner. This smart tag is a button that you can click to
quickly change a few common picture box settings and open the Select Resource dialog
box. (You’ll see the smart tag again in Chapter 4, “Working with Menus, Toolbars, and
Dialog Boxes,” when you use the ToolStrip control .)
Now you’ll change the Visible property to False so that the image will be invisible when
the program starts.
- Click the Visible property in the Behavior category of the Properties window, and then
click the arrow in the second column.
The valid settings for the Visible property appear in a list box. - Click False to make the picture invisible when the program starts.