v
Contents at a Glance
Part I Getting Started with Microsoft Visual Basic 2010
1 Exploring the Visual Studio Integrated Development
Environment............................................ 3
2 Writing Your First Program............................... 37
3 Working with Toolbox Controls........................... 67
4 Working with Menus, Toolbars, and Dialog Boxes........... 97
Part II Programming Fundamentals
5 Visual Basic Variables and Formulas,
and the .NET Framework................................ 123
6 Using Decision Structures............................... 159
7 Using Loops and Timers................................. 181
8 Debugging Visual Basic Programs........................ 209
9 Trapping Errors by Using Structured Error Handling......... 227
10 Creating Modules and Procedures........................ 247
11 Using Arrays to Manage Numeric and String Data.......... 273
12 Working with Collections............................... 297
13 Exploring Text Files and String Processing................. 313
Part III Designing the User Interface
14 Managing Windows Forms and Controls at Run Time....... 351
15 Adding Graphics and Animation Effects................... 375
16 Inheriting Forms and Creating Base Classes................ 393
17 Working with Printers.................................. 415
Part IV Database and Web Programming
18 Getting Started with ADO .NET........................... 441
19 Data Presentation Using the DataGridView Control......... 467
20 Creating Web Sites and Web Pages by Using Visual
Web Developer and ASP .NET............................ 491