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.

4. If you selected Recent, double-click on one of the files in the list.<br />

Note 1: (In Steps 3 <strong>and</strong> 4, if an unsaved program is present, <strong>Visual</strong> <strong>Basic</strong> will<br />

prompt you about saving it.)<br />

Note 2: The form or code for the program may not appear, but can be accessed<br />

through the Project Explorer window. Another way to obtain the Code <strong>and</strong> Form<br />

windows is to run <strong>and</strong> then terminate the program.<br />

E. Use the Project Explorer.<br />

Note: Just below the Project Explorer title bar are three icons (View Code, View<br />

Object, <strong>and</strong> Toggle Folders), <strong>and</strong> below them is the List window. At any time, one<br />

item in the List window is selected.<br />

1. Click on View Code to see the code associated with the selected item.<br />

2. Click on View Object to see the Object (usually the form) associated with the<br />

selected item.<br />

F. Display the form associated with a program.<br />

1. Press Alt/V/B. (If the selection Object is grayed, first run <strong>and</strong> then terminate the<br />

program.)<br />

or<br />

1. Press Shift+F7.<br />

or<br />

1. Press Alt/V/P to activate the Project Explorer window.<br />

2. Select the name of the form.<br />

3. Click on the View Object button.<br />

HOW TO: USE THE EDITOR<br />

A. Mark a section of text as a block.<br />

1. Move the cursor to the beginning or end of the block.<br />

2. Hold down a Shift key <strong>and</strong> use the direction keys to highlight a block of text.<br />

3. Release the Shift key.<br />

or<br />

1. Move the mouse to the beginning or end of the block.<br />

2. Hold down the left mouse button <strong>and</strong> move the mouse to the other end of the<br />

block.<br />

3. Release the left mouse button.<br />

Note 1: To unblock text, press a direction key or click outside the block.<br />

Note 2: To select a word, double-click on it. To select a line, move the mouse pointer<br />

just far enough into the left margin so that the pointer changes to an arrow, <strong>and</strong><br />

then single-click there.<br />

B. Delete a line of a program.<br />

1. Move the cursor to the line.<br />

2. Press Ctrl+Y.<br />

or<br />

1. Mark the line as a block. (See item A of this section.)<br />

2. Press Alt/E/T or press Ctrl+X.<br />

Appendix B 411

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

Saved successfully!

Ooh no, something went wrong!