3. Introduction to Visual Basic Programming

Comment is free, but facts are sacred.

—C. P. Scott

The creditor hath a better memory than the debtor.

—James Howell

Objectives

In this chapter you’ll learn:

• To write simple Visual Basic programs.

• To use the Windows Forms designer to position, size and align controls.

• To write statements that input data from the user and display results to the user.

• To declare and use data of various types.

• To use variables to store data for later use in a program.

• To use arithmetic operators to perform calculations.

• How precedence determines the order in which arithmetic operators are applied.

• To write decision-making statements.

• To use equality and relational operators to compare values.

Outline ...

Get Visual Basic® 2012 How to Program, Sixth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.