| |
| |
| |
First Steps | |
| |
| |
| |
A Basic Introduction to Programming | |
| |
| |
The Surprising Secret | |
| |
| |
Why Learn to Program? | |
| |
| |
What's a Computer Program? | |
| |
| |
Programming Languages | |
| |
| |
The Programming Process | |
| |
| |
Is Programming Easy? | |
| |
| |
| |
Cranking Up Visual Basic .NET | |
| |
| |
Starting Visual Basic .NET | |
| |
| |
Starting and Loading Projects | |
| |
| |
Introducing the Parts of the Visual Basic .NET Window | |
| |
| |
| |
Creating Your First Project | |
| |
| |
Creating a Program ... in a Nutshell | |
| |
| |
| |
Creating the User Interface | |
| |
| |
| |
Adding the Program Source Code | |
| |
| |
| |
Creating Your Program's Executable File | |
| |
| |
| |
Writing Basic Program Code | |
| |
| |
| |
Variables and I/O: Programming Secrets | |
| |
| |
Computer Programs and I/O | |
| |
| |
Introducing Variables | |
| |
| |
Labeling Your Text Boxes | |
| |
| |
Having Fun with Input and Output | |
| |
| |
| |
Crunching Numbers: It's Easier Than You Think | |
| |
| |
Looking at Variables Mathematically | |
| |
| |
Venturing Beyond Addition | |
| |
| |
Knowing Your Order of Operations | |
| |
| |
Using Data Types | |
| |
| |
Mixing Data Types | |
| |
| |
| |
Strings: A Frank Textual Discussion | |
| |
| |
Joining Strings | |
| |
| |
Determining the Length of a String | |
| |
| |
Extracting a Substring | |
| |
| |
Finding Substrings | |
| |
| |
Changing Case | |
| |
| |
Converting Numbers to Strings | |
| |
| |
| |
If, Else, and Elself: Decisions, Decisions, Decisions | |
| |
| |
Understanding Program Flow and Branching | |
| |
| |
Introducing the If...Then Statement | |
| |
| |
Using Relational Operators | |
| |
| |
Using Logical Operators | |
| |
| |
Revisting the Infamous Go To | |
| |
| |
| |
Select Case: Another Way to Decide | |
| |
| |
Introducing the Select Case Statement | |
| |
| |
Digging Into the Select Case Statement | |
| |
| |
Digging Even Deeper | |
| |
| |
Ranges and the Select Case Statement | |
| |
| |
| |
Looping with For...Next: Counting the Computer Way | |
| |
| |
Introducing the For...Next Loop | |
| |
| |
Adding the Step Clause | |
| |
| |
Using Variables in Loops | |
| |
| |
| |
Looping with Do, While, and Until | |
| |
| |
Introducing the Do While Loop | |
| |
| |
The Do Until Loop | |
| |
| |
The Do...Loop While Loop | |
| |
| |
The Do...Loop Until Loop | |
| |
| |
| |
Arrays: Tricky Problems with Clever Solutions | |
| |
| |
Introducing Arrays | |
| |
| |
Using a Variable As a Subscript | |
| |
| |
Working with String Arrays | |
| |
| |
| |
File Handling: The Ol'Data I/O Shuffle | |
| |
| |
Three Steps to Access a File | |
| |
| |
Trying It Out | |
| |
| |
Loading Data from a File | |
| |
| |
Appending Data to a File | |
| |
| |
| |
User-Defined Data Types: Data Your Way! | |
| |
| |
Declaring a Structure | |
| |
| |
Declaring a Variable from a Structure | |
| |
| |
The Real Advantage | |
| |
| |
Using Structures Inside Structures | |
| |
| |
Accessing Structures | |
| |
| |
Passing Structures As Arguments | |
| |
| |
| |
Procedures and Functions: Breaking Things Down | |
| |
| |
The Top-Down Approach to Programming | |
| |
| |
Using Procedures | |
| |
| |
Introducing Variable Scope | |
| |
| |
Using Functions | |
| |
| |
| |
Printing: Your Own Edition of Hard Copy | |
| |
| |
Introducing the PrintDocument Control | |
| |
| |
Printing Multiple Pages | |
| |
| |
Positioning Text | |
| |
| |
| |
Catching Runtime Errors | |
| |
| |
Understanding Runtime Errors | |
| |
| |
Learning to Catch Exceptions | |
| |
| |
I Want That Exception! | |
| |
| |
Catching Even More Exceptions | |
| |
| |
The Example Program | |
| |
| |
| |
Mastering the Art of Bug Extermination | |
| |
| |
Debugging Programs | |
| |
| |
Stepping Through a Program | |
| |
| |
Watching Variables | |
| |
| |
| |
Elements of Visual Basic .NET Windows Programs | |
| |
| |
| |
A Place to Put Controls | |
| |
| |
Revisiting the Windows Form | |
| |
| |
Introducing Form Properties | |
| |
| |
Using Form Properties | |
| |
| |
Introducing Form Methods | |
| |
| |
Adding Form Events | |
| |
| |
| |
Controls and Objects: There's a Difference? | |
| |
| |
Thinking About Objects | |
| |
| |
Thinking About Controls | |
| |
| |
| |
The Inner Workings of Controls and Objects | |
| |
| |
Introducing Properties | |
| |
| |
Setting Properties | |
| |
| |
Introducing Methods | |
| |
| |
Calling Methods | |
| |
| |
Introducing Events | |
| |
| |
Writing Event Handlers | |
| |
| |
| |
Modules and Classes | |
| |
| |
| |
Modules: A Special Place for Handy Stuff | |
| |
| |
Getting Modular | |
| |
| |
Reuse Is the Key | |
| |
| |
| |
Classes: An Object-Oriented Way of Thinking | |
| |
| |
Looking at Object-Oriented Programming Techniques | |
| |
| |
Writing a Class | |
| |
| |
Classes Versus Objects | |
| |
| |
| |
Properties, Methods, and Events: A Class's Innards | |
| |
| |
Introducing Properties and Methods | |
| |
| |
Reading Your Books | |
| |
| |
The Stuff You Need to Know | |
| |
| |
| |
Inheritance: Reproduction the Visual Basic .NET Way | |
| |
| |
The Basics of Inheritance | |
| |
| |
Inheritance for Real | |
| |
| |
| |
Polymorphism: Teaching Objects Special Tricks | |
| |
| |
Getting Polymorphic | |
| |
| |
Polymorphism on the Loose | |
| |
| |
A Shape That Actually Does Something | |
| |
| |
Another Shape That Does Something | |
| |
| |
Another Branch on the Family Tree | |
| |
| |
Putting It All to Work | |
| |
| |
| |
Writing Windows Applications | |
| |
| |
| |
Button Controls: Clicking Your Way to Success | |
| |
| |
Digging Into Button Controls | |
| |
| |
Checking Out CheckBox Controls | |
| |
| |
Tuning Into the RadioButton Controls | |
| |
| |
| |
Text Controls: Computers and the English Language | |
| |
| |
Introducing Label Controls | |
| |
| |
Using TextBox Controls | |
| |
| |
| |
List Controls: It's the User's Choice | |
| |
| |
Introducing ListBox Controls | |
| |
| |
Introducing ComboBox Controls | |
| |
| |
| |
Scrolling Controls: Getting from Here to There | |
| |
| |
Using Scroll Bar Controls | |
| |
| |
Creating a Sample Program | |
| |
| |
| |
The Timer Control: Tick, Tick, Tick... | |
| |
| |
Using the Timer Control | |
| |
| |
Digging Into the TimerTest Program | |
| |
| |
Working with Multiple Timer Events | |
| |
| |
Digging Into the TimerTest2 Program | |
| |
| |
| |
Message Boxes: Your Program Speaks Out | |
| |
| |
Introducing the Message Box | |
| |
| |
Putting It All Together | |
| |
| |
| |
Menus: Great Selections at a Great Price | |
| |
| |
Introducing Menu Bars | |
| |
| |
Using the Visual Basic .NET MainMenu Control | |
| |
| |
Responding to Menu Commands | |
| |
| |
Appendixes | |
| |
| |
| |
Installing Visual Studio .NET | |
| |
| |
| |
Speak Like a Geek | |
| |
| |
Index | |