| |
| |
How to Use This Book | |
| |
| |
Preface | |
| |
| |
Start-Up Checklist | |
| |
| |
| |
Your First Visual Basic Program | |
| |
| |
| |
A First Look at Microsoft Visual Basic | |
| |
| |
Introduction to Microsoft Visual Studio 2005 | |
| |
| |
Starting Visual Studio 2005 | |
| |
| |
Opening an Existing Visual Basic Project | |
| |
| |
Components of the Compiler | |
| |
| |
Running a Visual Basic Program | |
| |
| |
Exiting Visual Studio | |
| |
| |
Summary | |
| |
| |
| |
Forms, Controls, and Properties | |
| |
| |
Creating a New Project | |
| |
| |
Saving the Project | |
| |
| |
Viewing and Modifying Properties | |
| |
| |
Creating Controls | |
| |
| |
Understanding Focus | |
| |
| |
Setting Additional Properties | |
| |
| |
Summary | |
| |
| |
| |
Events and Code | |
| |
| |
Events | |
| |
| |
Accessing the Code Window | |
| |
| |
Adding Code to a Command Button | |
| |
| |
Adding a Picture to a Form | |
| |
| |
Setting Image Properties | |
| |
| |
Use Code to Set Properties | |
| |
| |
Adding Access Keys to Command Buttons | |
| |
| |
Setting the AcceptButton and CancelButton Form Properties | |
| |
| |
Summary | |
| |
| |
Unit Review | |
| |
| |
| |
Calculations and Data | |
| |
| |
| |
Mathematical Operators | |
| |
| |
Performing Calculations in Visual Basic | |
| |
| |
Creating Label Controls | |
| |
| |
Using the Addition and Assignment Operators | |
| |
| |
Using Text Boxes and the Val Function | |
| |
| |
Splitting Code Statements among Lines | |
| |
| |
Using the Subtraction Operator | |
| |
| |
Using Unary Minus | |
| |
| |
Using Fix | |
| |
| |
Performing Integer Divsion and Using the Modulus Operator | |
| |
| |
Summary | |
| |
| |
| |
Data Types and Variables | |
| |
| |
Data Types | |
| |
| |
Using the AutoSize Property | |
| |
| |
Declaring Variables | |
| |
| |
Using Variables | |
| |
| |
Scope | |
| |
| |
Using the Object Data Type | |
| |
| |
Summary | |
| |
| |
| |
Exponentiation, Order of Operations, and Error Handling | |
| |
| |
Exponentiation | |
| |
| |
Order of Operations | |
| |
| |
Using the Visible Property to Enhance Output | |
| |
| |
Using Comments | |
| |
| |
Handling Run-Time Errors | |
| |
| |
Using MsgBox | |
| |
| |
Using Exit Sub to Exit a Subroutine | |
| |
| |
Summary | |
| |
| |
| |
Strings and Decimal Types | |
| |
| |
Declaring String Variables | |
| |
| |
Assigning Text to String Variables | |
| |
| |
Concatenation | |
| |
| |
Using Decimal Types | |
| |
| |
Using the Format Function | |
| |
| |
Using the Enabled Property | |
| |
| |
Using the SelectionStart and SelectionLength Properties | |
| |
| |
Summary | |
| |
| |
Unit Review | |
| |
| |
| |
Decision Making | |
| |
| |
| |
If Statements | |
| |
| |
The Building Blocks of Decision Making | |
| |
| |
Using the Conditional Operators | |
| |
| |
Using If Statements | |
| |
| |
Creating and Reading Flowcharts | |
| |
| |
Using If...Else Statements | |
| |
| |
Using Check Boxes | |
| |
| |
Using the Logical Operators | |
| |
| |
Summary | |
| |
| |
| |
Nested If Statements and Radio Buttons | |
| |
| |
Using Nested If Statements | |
| |
| |
Using Radio Buttons | |
| |
| |
Using a Form Load Event Procedure | |
| |
| |
Using Select Case | |
| |
| |
Summary | |
| |
| |
Unit Review | |
| |
| |
| |
Loops and Arrays | |
| |
| |
| |
Do Loops | |
| |
| |
What Are Loops? | |
| |
| |
Using the Do Loops | |
| |
| |
Using the InputBox Function | |
| |
| |
Potential Event Procedure Problems and Solutions | |
| |
| |
Using Nested Loops | |
| |
| |
Summary | |
| |
| |
| |
List Boxes, For Next Loops, and Label Settings | |
| |
| |
Using the ListBox Control | |
| |
| |
Using For Next Loops | |
| |
| |
Nesting For Next Loops | |
| |
| |
Changing Label Font Settings | |
| |
| |
Summary | |
| |
| |
| |
Arrays | |
| |
| |
Declaring and Accessing Arrays | |
| |
| |
Using Loops with Arrays | |
| |
| |
Parallel Arrays | |
| |
| |
Summary | |
| |
| |
Unit Review | |
| |
| |
| |
Multiple Forms, Menus, and Printing | |
| |
| |
| |
Multiple Forms | |
| |
| |
Using Multiple Forms | |
| |
| |
Adding a Splash Screen | |
| |
| |
Modifying a Form at Run Time | |
| |
| |
Summary | |
| |
| |
| |
Menus and Printing | |
| |
| |
Creating Menus Using the Menu Editor | |
| |
| |
Writing Code for a Menu Command | |
| |
| |
Using Check Marks in Menus | |
| |
| |
Creating a Submenu | |
| |
| |
Inserting Separator Bars in Menus | |
| |
| |
Printing from Visual Studio | |
| |
| |
Summary | |
| |
| |
Unit Review | |
| |
| |
| |
Graphics and Drawing | |
| |
| |
| |
Lines and Shapes | |
| |
| |
Drawing Objects Using Code | |
| |
| |
Drawing Rectangles | |
| |
| |
Drawing Ellipses | |
| |
| |
Drawing Polygons | |
| |
| |
Locating the Mouse | |
| |
| |
Clearing the Form | |
| |
| |
Summary | |
| |
| |
| |
Case Study-Snake Game | |
| |
| |
Running the Snake Game | |
| |
| |
Drawing with Pixels and Using the Paint Event Handler | |
| |
| |
How the Snake Game Draws the Snake | |
| |
| |
Analyzing the Snake Game Code | |
| |
| |
Summary | |
| |
| |
| |
Web Functionality and Form Appearance | |
| |
| |
WebBrowser Control | |
| |
| |
Altering the Appearance of Forms | |
| |
| |
Closing and Moving the Form | |
| |
| |
Summary | |
| |
| |
Unit Review | |
| |
| |
| |
Asp.net | |
| |
| |
| |
Introduction to ASP.NET | |
| |
| |
What is ASP.NET? | |
| |
| |
Creating a New Web Project | |
| |
| |
ASP.NET Development Server | |
| |
| |
Structure of an ASP.NET Project | |
| |
| |
Source View vs. HTML Output | |
| |
| |
ASP.NET Compilation Options | |
| |
| |
Summary | |
| |
| |
| |
WebForms and Controls | |
| |
| |
Adding WebForms to an ASP.NET Project | |
| |
| |
Images | |
| |
| |
Text Boxes | |
| |
| |
Radio Buttons | |
| |
| |
Check Boxes | |
| |
| |
Hyper Links | |
| |
| |
Summary | |
| |
| |
| |
Case Study-Pizza Order Form | |
| |
| |
The Task | |
| |
| |
Creating the Simple WebForm | |
| |
| |
Adding the Customer Information Fields | |
| |
| |
Adding the Pizza Information Fields | |
| |
| |
Adding Validation Controls | |
| |
| |
Presenting the Confirmation Screen | |
| |
| |
Summary | |
| |
| |
Unit Review | |
| |
| |
Capstone Simulation | |
| |
| |
Glossary | |
| |
| |
Index | |