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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

1. Press F4.<br />

or<br />

1. Click on an object on the form with the right mouse button.<br />

2. In the shortcut menu, click on Properties.<br />

B. Highlight a property in the Properties window.<br />

1. Activate the Properties window <strong>and</strong> press the Enter key.<br />

2. Use the Up or Down Arrow keys to move the highlight bar to the desired property.<br />

or<br />

1. Activate the Properties window.<br />

2. Click on the up or down arrow located at the ends of the vertical scroll bar at<br />

the right side of the Properties window until the desired property is visible.<br />

3. Click on the desired property.<br />

C. Select or specify a setting for a property.<br />

1. Highlight the property whose setting is to be changed.<br />

2. Click on the settings box or press Tab to place the cursor in the settings box.<br />

a. If a black down-arrow appears at the right end of the settings box, click on<br />

the down-arrow to display a list of all allowed settings, <strong>and</strong> then click on the<br />

desired setting.<br />

b. If an ellipsis (three periods: . . .) appears at the right end of the settings box,<br />

press F4 or click on the ellipsis to display a dialog box. Answer the questions<br />

in the dialog box <strong>and</strong> click on OK or Open, as appropriate.<br />

c. If the cursor moves to the settings box, type in the new setting for the<br />

property.<br />

D. Change a property setting of an object.<br />

1. Select the desired object.<br />

2. Activate the Properties window.<br />

3. Highlight the property whose setting is to be changed.<br />

4. Select or specify the new setting for the property.<br />

E. Let a label change size to accommodate its caption.<br />

1. Set the label’s AutoSize property to True. (The label will shrink to the smallest<br />

size needed to hold the current caption. If the caption is changed, the label will<br />

automatically grow or shrink horizontally to accommodate the new caption. If<br />

the WordWrap property is set to True as well, the label will grow <strong>and</strong> shrink<br />

vertically, keeping the same width.)<br />

F. Let a label caption use more than one line.<br />

1. Set the label’s WordWrap property to True. [If the label is not wide enough to<br />

accommodate the entire caption on one line, part of the caption will wrap to<br />

additional lines. If the label height is too small, then part or all of these wrapped<br />

lines will not be visible (unless the AutoSize property is set to True).]<br />

G. Let a text box display more than one line.<br />

1. Set the text box’s MultiLine property to True. (If the text box is not wide enough<br />

to accommodate the text entered by the user, the text will scroll down to new<br />

Appendix B 417

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

Saved successfully!

Ooh no, something went wrong!