| |
| |
Acknowledgments | |
| |
| |
Introduction | |
| |
| |
| |
Introduction to Visual Basic .NET | |
| |
| |
| |
What Is Visual Basic .NET? | |
| |
| |
Visual Basic .NET Defined | |
| |
| |
Visual Basic .NET Is a Programming Language | |
| |
| |
Visual Basic .NET Is Used for Writing Windows Applications | |
| |
| |
Windows Applications Are Gooey | |
| |
| |
Windows Applications Are Event-Driven | |
| |
| |
The Visual Basic .NET Programming Language Is Object-Oriented | |
| |
| |
Properties | |
| |
| |
Methods | |
| |
| |
Events | |
| |
| |
Programming with Class | |
| |
| |
It's Not Just Visual Basic, It's Visual Basic .NET | |
| |
| |
Summary | |
| |
| |
Mastery Check | |
| |
| |
| |
Create A Visual Basic .NET Program Without Writing Code | |
| |
| |
The .NET Framework | |
| |
| |
Before You Install Visual Studio .NET | |
| |
| |
Visual Studio .NET Versions | |
| |
| |
Visual Studio .NET System Requirements | |
| |
| |
| |
Installing Visual Studio .NET | |
| |
| |
Starting and Customizing Visual Studio .NET | |
| |
| |
| |
Creating a Windows Application | |
| |
| |
The Code Behind the Scenes | |
| |
| |
Class and Inherits Statements | |
| |
| |
New Method | |
| |
| |
Initialize Component Method | |
| |
| |
Dispose Method | |
| |
| |
Region Directive | |
| |
| |
Summary | |
| |
| |
Mastery Check | |
| |
| |
| |
Event Procedures, Properties, and Controls | |
| |
| |
Event Procedures | |
| |
| |
When Are Event Procedures Necessary? | |
| |
| |
Using the IDE to Create an Event Procedure | |
| |
| |
Writing Code Inside the Event Procedure | |
| |
| |
Viewing and Changing Properties | |
| |
| |
Using the Forms Designer to View and Change Properties | |
| |
| |
Viewing and Changing Properties Through Code | |
| |
| |
Adding Controls to the Form | |
| |
| |
The Toolbox | |
| |
| |
Copying the Control from the Toolbox to the Form | |
| |
| |
Changing the Control's Size and Location Using the Forms Designer | |
| |
| |
The Code Behind the Scenes | |
| |
| |
| |
Using the Label Control | |
| |
| |
Summary | |
| |
| |
Mastery Check | |
| |
| |
| |
Programming Building Blocks: Variables, Data Types, and Operators | |
| |
| |
| |
Variables and Data Types | |
| |
| |
Data Types | |
| |
| |
Bits and Bytes | |
| |
| |
Numeric Data Types | |
| |
| |
Character Data Types | |
| |
| |
Miscellaneous Data Types | |
| |
| |
Default Values | |
| |
| |
Variables | |
| |
| |
Option Explicit | |
| |
| |
Option Strict | |
| |
| |
Scope | |
| |
| |
Declaring a Variable | |
| |
| |
| |
Shared Variable | |
| |
| |
Constants | |
| |
| |
Summary | |
| |
| |
Mastery Check | |
| |
| |
| |
Assignment and Arithmetic Operators | |
| |
| |
The Assignment Operator | |
| |
| |
The Location of the Assignment Statement | |
| |
| |
The Left Side of the Assignment Statement | |
| |
| |
The Right Side of the Assignment Statement | |
| |
| |
Type Conversions | |
| |
| |
Widening Conversions | |
| |
| |
Narrowing Conversions | |
| |
| |
The Effect of Option Strict on Conversions | |
| |
| |
Type Conversion Keywords | |
| |
| |
Arithmetic Operators | |
| |
| |
The Division Operators | |
| |
| |
Concatenation Operators | |
| |
| |
Type Conversions Revisited | |
| |
| |
Operator Precedence | |
| |
| |
Combining Arithmetic and Assignment Operators | |
| |
| |
| |
Change Machine Project | |
| |
| |
The InputBox Function and Return Value | |
| |
| |
The Algorithm | |
| |
| |
Outputting the Result | |
| |
| |
Summary | |
| |
| |
Mastery Check | |
| |
| |
| |
Comparison and Logical Operators | |
| |
| |
Comparison Operators | |
| |
| |
Comparing Objects | |
| |
| |
Comparing Strings | |
| |
| |
Precedence | |
| |
| |
Logical Operators | |
| |
| |
The And Operator | |
| |
| |
The AndAlso Operator | |
| |
| |
The Or Operator | |
| |
| |
The OrElse Operator | |
| |
| |
The Xor Operator | |
| |
| |
The Not Operator | |
| |
| |
Precedence | |
| |
| |
Summary | |
| |
| |
Mastery Check | |
| |
| |
| |
Controlling the Flow of the Program | |
| |
| |
| |
Control Structures | |
| |
| |
If Statements | |
| |
| |
The If...Then Statement | |
| |
| |
The If...Then...Else Statement | |
| |
| |
The IIf Function | |
| |
| |
The If...Elself Statement | |
| |
| |
Controls Used for If Statements | |
| |
| |
CheckBox Control | |
| |
| |
RadioButton Control | |
| |
| |
| |
Tuition Calculator | |
| |
| |
The Select Case Statement | |
| |
| |
| |
Arithmetic Calculator | |
| |
| |
Summary | |
| |
| |
Mastery Check | |
| |
| |
| |
Loops and Arrays | |
| |
| |
Loop Structures | |
| |
| |
The For...Next Statement | |
| |
| |
The While...End While Statement | |
| |
| |
The Do Statement | |
| |
| |
Arrays | |
| |
| |
Declaring an Array | |
| |
| |
Useful Array Functions, Properties, and Methods | |
| |
| |
Resizing an Array | |
| |
| |
The For Each...Next Statement | |
| |
| |
| |
Day of Week Calculator | |
| |
| |
Summary | |
| |
| |
Mastery Check | |
| |
| |
| |
Procedures | |
| |
| |
Types of Procedures | |
| |
| |
Built-in vs. Programmer-defined Procedures | |
| |
| |
Methods Contrasted | |
| |
| |
Subroutines | |
| |
| |
Declaring a Subroutine | |
| |
| |
Calling the Subroutine | |
| |
| |
Arguments | |
| |
| |
Functions | |
| |
| |
Declaring Functions | |
| |
| |
Calling Functions | |
| |
| |
More on Arguments | |
| |
| |
Passing Arguments ByVal and ByRef | |
| |
| |
Optional Arguments | |
| |
| |
Parameter Arrays | |
| |
| |
Procedure Overloading | |
| |
| |
| |
Calculator, Version 2 | |
| |
| |
Summary | |
| |
| |
Mastery Check | |
| |
| |
| |
The User Interface | |
| |
| |
| |
Helper Forms | |
| |
| |
Message Boxes | |
| |
| |
| |
Message Boxes | |
| |
| |
Dialog Boxes | |
| |
| |
| |
Dialog Box | |
| |
| |
Owned Forms | |
| |
| |
| |
Owned Form | |
| |
| |
Summary | |
| |
| |
Mastery Check | |
| |
| |
| |
Menus and Toolbars | |
| |
| |
Menus | |
| |
| |
Creating a Menu | |
| |
| |
Add Functionality to the Menu Items | |
| |
| |
Enhancing the Menu | |
| |
| |
Disabling Items on Windows Forms Menus | |
| |
| |
Context Menu | |
| |
| |
Creating a Context Menu | |
| |
| |
Adding Items to the Context Menu | |
| |
| |
Add Functionality to the Menu Items | |
| |
| |
Toolbars | |
| |
| |
Adding the Toolbar and Buttons | |
| |
| |
Defining an Icon for a Toolbar Button | |
| |
| |
Adding Functionality to the Toolbar | |
| |
| |
| |
Text Editor | |
| |
| |
Summary | |
| |
| |
Mastery Check | |
| |
| |
| |
Error Handling and Prevention | |
| |
| |
| |
Structured Exception Handling and Debugging | |
| |
| |
Structured Exception Handling | |
| |
| |
Exceptions | |
| |
| |
Structured vs. Unstructured Exception Handling | |
| |
| |
The Try...Catch...Finally Statement | |
| |
| |
| |
Illegal Division | |
| |
| |
Exception Classes | |
| |
| |
Debugging | |
| |
| |
Break Mode | |
| |
| |
Starting Debugging | |
| |
| |
Controlling the Flow During Debugging | |
| |
| |
Debugging Tools | |
| |
| |
Summary | |
| |
| |
Mastery Check | |
| |
| |
Answers to Mastery Checks | |
| |
| |
| |
What Is Visual Basic .NET? | |
| |
| |
| |
Create A Visual Basic .NET Program Without Writing Code | |
| |
| |
| |
Event Procedures, Properties, and Controls | |
| |
| |
| |
Variables and Data Type | |
| |
| |
| |
Assignment and Arithmetic Operators | |
| |
| |
| |
Comparison and Logical Operators | |
| |
| |
| |
Control Structures | |
| |
| |
| |
Loops and Arrays | |
| |
| |
| |
Procedures | |
| |
| |
| |
Helper Forms | |
| |
| |
| |
Menus and Toolbars | |
| |
| |
| |
Structured Exception Handling and Debugging | |
| |
| |
Index | |