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.

2.1 VISUAL BASIC OBJECTS<br />

<strong>Visual</strong> <strong>Basic</strong> programs display a Windows style screen (called a form) with boxes into which<br />

users type (<strong>and</strong> edit) information <strong>and</strong> buttons that they click to initiate actions. The boxes <strong>and</strong><br />

buttons are referred to as controls. Forms <strong>and</strong> controls are called objects. In this section, we<br />

examine forms <strong>and</strong> four of the most useful <strong>Visual</strong> <strong>Basic</strong> controls.<br />

Note: If <strong>Visual</strong> <strong>Basic</strong> has not been installed on your computer, you can install it by following<br />

the steps outlined on the first page of Appendix B.<br />

Invoking <strong>Visual</strong> <strong>Basic</strong> 6.0: To invoke <strong>Visual</strong> <strong>Basic</strong>, click the Start button, point to Programs,<br />

point to Microsoft <strong>Visual</strong> <strong>Basic</strong> 6.0, <strong>and</strong> click on Microsoft <strong>Visual</strong> <strong>Basic</strong> 6.0 in the<br />

final list.<br />

With all versions of <strong>Visual</strong> <strong>Basic</strong> 6.0, the center of the screen will contain the New Project<br />

window of Figure 2-1. The main part of the window is a tabbed dialog box with three<br />

tabs—New, Existing, <strong>and</strong> Recent. (If the New tab is not in the foreground, click on it to bring<br />

it to the front.) The number of project icons showing are either three (with the Working<br />

Model <strong>and</strong> Learning Editions) or thirteen (with the Professional <strong>and</strong> Enterprise Editions).<br />

FIGURE 2-1 New Project Window from the Working Model Edition of VB 6.0<br />

17

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

Saved successfully!

Ooh no, something went wrong!