Chapter 1 Visual Basic, Controls, and Events 1
1.1 An Introduction to Visual Basic 2010 2
1.2 Visual Basic Controls 4
1.3 Visual Basic Events 20
Summary 33
Chapter 2 Variables, Input, and Output 34
2.1 Numbers 35
2.2 Strings 46
2.3 Input and Output 59
Summary 69
Chapter 3 Decisions 71
3.1 Relational and Logical Operators 72
3.2 If Blocks 79
3.3 Select Case Blocks 93
3.4 Input via User Selection 103
Summary 113
Programming Projects 113
Chapter 4 General Procedures 116
4.1 Function Procedures 117
4.2 Sub Procedures, Part Ⅰ 128
4.3 Sub Procedures, Part Ⅱ 136
4.4 Modular Design 144
4.5 A Case Study:Weekly Payroll 148
Summary 156
Programming Projects 156
Chapter 5 Repetition 159
5.1 Do Loops 160
5.2 For...Next Loops 170
5.3 List Boxes and Loops 181
Summary 188
Programming Projects 189
Chapter 6 Arrays 192
6.1 Creating and Accessing Arrays 193
6.2 Using LINQ with Arrays 210
6.3 Arrays of Structures 221
6.4 Two-Dimensional Arrays 239
6.5 A Case Study: Analyze a Loan 249
Summary 258
Programming Projects 259
Chapter 7 Additional Controls and Objects 263
7.1 List Boxes and Combo Boxes 264
7.2 Eight Additional Controls and Objects 271
7.3 Multiple-Form Programs 284
7.4 Graphics 294
Summary 307
Programming Projects 308
Chapter 8 Object-Oriented Programming 312
8.1 Classes and Objects 313
8.2 Working with Objects 327
8.3 Inheritance 337
Summary 352
Programming Projects 353
Chapter 9 Databases 355
9.1 An Introduction to Databases 356
9.2 Editing and Designing Databases 373
Summary 380
Programming Projects 381
Chapter 10 Text Files 384
10.1 Managing Text Files 385
10.2 StreamReaders, StreamWriters, and Structured Exception Handling 398
10.3 A Case Study: Recording Checks and Deposits 411
Summary 419
Programming Projects 420
Appendix A ANSI Values 424
Appendix B How To 426
Appendix C Files and Folders 437
Appendix D Visual Basic Debugging Tools 439