19.12.2012 Views

Computer Programming Concepts and Visual Basic David I. Schneider

Computer Programming Concepts and Visual Basic David I. Schneider

Computer Programming Concepts and Visual Basic David I. Schneider

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

A TEXT BOX WALKTHROUGH<br />

1. Double-click on the text box icon. (The text box icon consists of the letters ab<br />

<strong>and</strong> a vertical bar cursor inside a rectangle <strong>and</strong> is the fourth icon in the Toolbox.)<br />

A rectangle with eight small squares, called sizing h<strong>and</strong>les, appears at the<br />

center of the form. See Figure 2-3.<br />

FIGURE 2-3 A Text Box with Sizing H<strong>and</strong>les<br />

2. Click anywhere on the form outside the rectangle to remove the h<strong>and</strong>les.<br />

3. Click on the rectangle to restore the h<strong>and</strong>les. An object showing its h<strong>and</strong>les is<br />

(said to be) selected. A selected object can have its size altered, location<br />

changed, <strong>and</strong> other properties modified.<br />

4. Move the mouse arrow to the h<strong>and</strong>le in the center of the right side of the text<br />

box. The cursor should change to a double arrow ( ). Hold down the left<br />

mouse button, <strong>and</strong> move the mouse to the right. The text box is stretched to the<br />

right. Similarly, grabbing the text box by one of the other h<strong>and</strong>les <strong>and</strong> moving<br />

the mouse stretches the text box in another direction. For instance, you use the<br />

h<strong>and</strong>le in the upper-left corner to stretch the text box up <strong>and</strong> to the left. H<strong>and</strong>les<br />

also can be used to make the text box smaller.<br />

5. Move the mouse arrow to any point of the text box other than a h<strong>and</strong>le, hold<br />

down the left mouse button, <strong>and</strong> move the mouse. You can now drag the text box<br />

to a new location. Using Steps 4 <strong>and</strong> 5, you can place a text box of any size anywhere<br />

on the form.<br />

Note: The text box should now be selected; that is, its sizing h<strong>and</strong>les should be<br />

showing. If not, click anywhere inside the text box to select it.<br />

6. Press the delete key, Del, to remove the text box from the form. Step 7 gives an<br />

alternative way to place a text box of any size at any location on the form.<br />

7. Click on the text box icon in the Toolbox. Then move the mouse pointer to any<br />

place on the form. (When over the form, the mouse pointer becomes a pair of<br />

crossed thin lines.) Hold down the left mouse button, <strong>and</strong> move the mouse on a<br />

diagonal to generate a rectangle. Release the mouse button to obtain a selected<br />

text box. You can now alter the size <strong>and</strong> location as before.<br />

Note: The text box should now be selected; that is, its sizing h<strong>and</strong>les should be<br />

showing. If not, click anywhere inside the text box to select it.<br />

8. Press F4 to activate the Properties window. (You can also activate the properties<br />

window by clicking on it or clicking on the Properties window icon in the Toolbar.)<br />

See Figure 2-4. The first line of the Properties window (called the Object<br />

box) reads “Text1 TextBox”. Text1 is the current name of the text box. The two<br />

tabs permit you to view the list of properties either alphabetically or grouped<br />

into categories. Text boxes have 43 properties that can be grouped into 7 categories.<br />

Use the up- <strong>and</strong> down-arrow keys (or the up- <strong>and</strong> down-scroll arrows) to<br />

glance through the list. The left column gives the property <strong>and</strong> the right column<br />

gives the current setting of the property. We discuss four properties in this walkthrough.<br />

<strong>Visual</strong> <strong>Basic</strong> Objects 19

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!