30.07.2013 Views

Visual Basic.NET How to Program (PDF)

Visual Basic.NET How to Program (PDF)

Visual Basic.NET How to Program (PDF)

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.

88 Introduction <strong>to</strong> <strong>Visual</strong> <strong>Basic</strong> <strong>Program</strong>ming Chapter 3<br />

Label<br />

But<strong>to</strong>n<br />

(displaying an icon) Menu (e.g., Help) Text box<br />

Menu bar<br />

Fig. Fig. 3.26 3.26 Internet Explorer window with GUI components.<br />

www.cyber-matrix.com/vb.htm<br />

This site links <strong>to</strong> <strong>Visual</strong> <strong>Basic</strong> tu<strong>to</strong>rials, books, tips and tricks, controls, programming <strong>to</strong>ols, magazines,<br />

news groups and more.<br />

searchvb.techtarget.com<br />

This site offers a search engine designed specifically <strong>to</strong> discover <strong>Visual</strong> <strong>Basic</strong> Web sites.<br />

www.aewnet.com/root/dotnet/vbnet<br />

The site links <strong>to</strong> demos, articles, tu<strong>to</strong>rials, and <strong>to</strong> other <strong>Visual</strong> <strong>Basic</strong> .<strong>NET</strong> sites in various languages<br />

(e.g., German).<br />

SUMMARY<br />

A console application is an application that primarily displays text output in a command window.<br />

In Microsoft Windows 95/98, the command window is called the MS-DOS prompt. In Microsoft<br />

Windows NT/2000/XP, the command window is called the command prompt.<br />

The single quote character, ', indicates that the remainder of a line is a comment.<br />

<strong>Program</strong>mers insert comments in a program <strong>to</strong> improve the readability of their code. Comments<br />

are ignored by the <strong>Visual</strong> <strong>Basic</strong> compiler; they do not cause the computer <strong>to</strong> perform any actions<br />

when the program is run.<br />

<strong>Visual</strong> <strong>Basic</strong> console applications consist of pieces called modules, which are logical groupings of<br />

procedures that simplify program organization.<br />

Procedures perform tasks and can return information when the tasks are completed. Every console<br />

application in <strong>Visual</strong> <strong>Basic</strong> consists of at least one module definition and one procedure.<br />

Keywords are words that are reserved for use by <strong>Visual</strong> <strong>Basic</strong>; programmers must choose other<br />

names as identifiers.<br />

The name of a module is an example of an identifier. An identifier is a series of characters, consisting<br />

of letters, digits and underscores ( _ ), that does not begin with a digit and does not contain<br />

spaces.

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

Saved successfully!

Ooh no, something went wrong!