| | Copyright | |
| | Preface | xi |
| | Acknowledgments | xiii |
| | The Companion Website for Students and Instructors | xv |
| | Using This Book for a Short or Condensed Course | xvi |
| | Chapter 1. An Introduction to Computers and Visual Basic 2005 | 1 |
| | | Section 1.1. An Introduction to Computers | 2 |
| | | Section 1.2. Using Windows | 4 |
| | | Section 1.3. Files and Folders | 12 |
| | | Section 1.4. An Introduction to Visual Basic 2005 | 18 |
| | | Section 1.5. Biographical History of Computing | 21 |
| | Chapter 2. Problem Solving | 29 |
| | | Section 2.1. Program Development Cycle | 30 |
| | | Section 2.2. Programming Tools | 32 |
| | Chapter 3. Fundamentals of Programming in Visual Basic | 41 |
| | | Section 3.1. Visual Basic Controls | 42 |
| | | Section 3.2. Visual Basic Events | 60 |
| | | Section 3.3. Numbers | 73 |
| | | Section 3.4. Strings | 88 |
| | | Section 3.5. Input and Output | 105 |
| | | Chapter 3 Summary | 127 |
| | | Chapter 3 Programming Projects | 128 |
| | Chapter 4. General Procedures | 131 |
| | | Section 4.1. Sub Procedures, Part I | 132 |
| | | Section 4.2. Sub Procedures, Part II | 154 |
| | | Section 4.3. Function Procedures | 169 |
| | | Section 4.4. Modular Design | 183 |
| | | Chapter 4 Summary | 188 |
| | | Chapter 4 Programming Projects | 188 |
| | Chapter 5. Decisions | 193 |
| | | Section 5.1. Relational and Logical Operators | 194 |
| | | Section 5.2. If Blocks | 201 |
| | | Section 5.3. Select Case Blocks | 218 |
| | | Section 5.4. A Case Study: Weekly Payroll | 235 |
| | | Chapter 5 Summary | 243 |
| | | Chapter 5 Programming Projects | 243 |
| | Chapter 6. Repetition | 247 |
| | | Section 6.1. Do Loops | 248 |
| | | Section 6.2. Processing Lists of Data with Do Loops | 261 |
| | | Section 6.3. For... Next Loops | 277 |
| | | Section 6.4. A Case Study: Analyze a Loan | 291 |
| | | Chapter 6 Summary | 301 |
| | | Chapter 6 Programming Projects | 301 |
| | Chapter 7. Arrays | 307 |
| | | Section 7.1. Creating and Accessing Arrays | 308 |
| | | Section 7.2. Using Arrays | 326 |
| | | Section 7.3. Some Additional Types of Arrays | 341 |
| | | Section 7.4. Sorting and Searching | 356 |
| | | Section 7.5. Two-Dimensional Arrays | 377 |
| | | Section 7.6. A Case Study: A Sophisticated Cash Register | 392 |
| | | Chapter 7 Summary | 401 |
| | | Chapter 7 Programming Projects | 402 |
| | Chapter 8. Sequential Files | 411 |
| | | Section 8.1. Sequential Files | 412 |
| | | Section 8.2. Using Sequential Files | 430 |
| | | Section 8.3. A Case Study: Recording Checks and Deposits | 442 |
| | | Chapter 8 Summary | 454 |
| | | Chapter 8 Programming Projects | 454 |
| | Chapter 9. Additional Controls and Objects | 461 |
| | | Section 9.1. List Boxes, Combo Boxes, and the File-Opening Control | 462 |
| | | Section 9.2. Seven Elementary Controls | 472 |
| | | Section 9.3. Four Additional Objects | 484 |
| | | Section 9.4. Graphics | 496 |
| | | Chapter 9 Summary | 509 |
| | | Chapter 9 Programming Projects | 510 |
| | Chapter 10. Database Management | 517 |
| | | Section 10.1. An Introduction to Databases | 518 |
| | | Section 10.2. Relational Databases and SQL | 531 |
| | | Chapter 10 Summary | 548 |
| | | Chapter 10 Programming Projects | 549 |
| | Chapter 11. Object-Oriented Programming | 551 |
| | | Section 11.1. Classes and Objects | 552 |
| | | Section 11.2. Arrays of Objects; Events; Containment | 569 |
| | | Section 11.3. Inheritance | 582 |
| | | Chapter 11 Summary | 601 |
| | | Chapter 11 Programming Projects | 602 |
| | Appendix A. ANSI Values | 605 |
| | Appendix B. How To | 607 |
| | | Invoke and Exit Visual Basic | 607 |
| | | Manage Programs | 607 |
| | | Use the Editor | 609 |
| | | Get Help | 611 |
| | | Manipulate a Dialog Box | 612 |
| | | Use Menus | 613 |
| | | Utilize the Windows Environment | 613 |
| | | Design a Form | 614 |
| | | Work with the Properties of a Form or Control | 615 |
| | | How To: Manage Procedures | 618 |
| | | Manage Windows | 619 |
| | | Use the Printer | 619 |
| | | Use the Debugger | 619 |
| | Appendix C. Converting from Visual Basic 6.0 to Visual Basic 2005 | 621 |
| | | Section 3.1 | 621 |
| | | Section 3.2 | 621 |
| | | Section 3.3 | 622 |
| | | Section 3.4 | 622 |
| | | Section 3.5 | 623 |
| | | Section 4.1 | 623 |
| | | Section 4.2 | 623 |
| | | Section 4.3 | 623 |
| | | Section 6.3 | 623 |
| | | Section 7.1 | 623 |
| | | Section 7.3 | 624 |
| | | Section 8.1 | 624 |
| | | Section 9.1 | 624 |
| | | Section 9.2 | 624 |
| | | Section 9.3 | 625 |
| | | Section 9.4 | 625 |
| | | Section 10.1 | 625 |
| | | Section 10.2 | 626 |
| | | Section 11.1 | 626 |
| | | Section 11.3 | 626 |
| | Appendix D. Visual Basic Debugging Tools | 627 |
| | | The Three Program Modes | 627 |
| | | Stepping through a Program | 628 |
| | | The Immediate Window | 629 |
| | | The Watch Window | 629 |
| | | The Locals Window | 630 |
| | | Six Walkthroughs | 630 |
| | | Stepping through an Elementary Program: Chapter 3 | 630 |
| | | Stepping through a Program Containing a General Procedure: Chapter 4 | 632 |
| | | Communicating between Arguments and Parameters | 633 |
| | | Stepping through Programs Containing Selection Structures: Chapter 5 | 633 |
| | | Stepping through a Program Containing a Do Loop: Chapter 6 | 635 |
| | Answers: To Selected Odd-Numbered Exercises | 637 |
| | | Chapter 1 | 637 |
| | | Chapter 3 | 638 |
| | | Chapter 4 | 650 |
| | | Chapter 5 | 660 |
| | | Chapter 6 | 668 |
| | | Chapter 7 | 679 |
| | | Chapter 8 | 699 |
| | | Chapter 9 | 706 |
| | | Chapter 10 | 714 |
| | | Chapter 11 | 720 |
| | Inside Front Cover | InsideFrontCover |
| | Index | |