Home > Store

Visual Basic 2005 for Programmers, 2nd Edition

Register your product to gain access to bonus material or receive a coupon.

Visual Basic 2005 for Programmers, 2nd Edition

Premium Website

  • Sorry, this book is no longer in print.
Not for Sale


  • Copyright 2006
  • Edition: 2nd
  • Premium Website
  • ISBN-10: 0-13-225140-X
  • ISBN-13: 978-0-13-225140-2


“The discussion of object-oriented programming is one of the best available.”
—Gavin Osborne, Saskatchewan Institute of Applied Science & Technology
“The explanation of UML, intelligently integrated into the book, conveys the heart and soul of true object oriented architecture and engineering.”
—Jeff Jones, Route Match Software
“The optional ATM OOD/UML case study is excellent! The implementation of the design gives the reader a fantastic model of a real world problem. You hit a home run with this one.”
—Catherine Wyman, Devry-Phoenix
“A superb job of clearly integrating the theory of relational databases and SQL with the application of ADO.NET.”
—Harlan Brewer, SES Consulting
“Really nails most everything you need to know about handling exceptions in VB.”
—Eric Gruber, Microsoft
“Excellent coverage of the most important features and techniques of developing ASP.NET 2.0 applications, with plenty of sample code.”
—Peter Bromberg, Senior Enterprise Architect, VOIP, Inc.
“A very impressive introduction to XML.”
—John Z. Chen, Microsoft
“An excellent chapter on Web services with great examples.”
—Chadi Boudiab, Georgia Perimeter College
“The best description of generics I’ve seen!”
—James Huddleston, Independent Consultant
The practicing programmer’s DEITEL® guide to Visual Basic and the powerful Microsoft .NET Framework

Written for C#, C++, Java or other-high level language programmers, this book applies the Deitel signature live-code approach to teaching programming and explores Microsoft’s Visual Basic language and the new .NET 2.0 in depth. The book is updated for Visual Studio® 2005 and presents Visual Basic concepts in fully tested programs, complete with syntax shading, line-by-line code descriptions, and program outputs. The book features 200+ applications with 16,000+ lines of proven Visual Basic code, and hundreds of programming tips that help you build robust applications.

Start with a concise introduction to Visual Basic fundamentals using an early classes and objects approach, then rapidly move on to more advanced topics, including multithreading, XML, ADO.NET 2.0, ASP.NET 2.0, Web services, network programming, .NET remoting, generics and collections. Along the way you’ll enjoy the Deitels’ classic treatment of object-oriented programming and a new, OOD/UML ATM case study, including a complete Visual Basic implementation. When you are finished, you’ll be well on your way to building next generation Windows applications, Web applications, and Web services.

Paul J. Deitel and Harvey M. Deitel are the founders of Deitel & Associates, Inc., the internationally recognized programming languages content-creation and corporate training organization. Together with their colleagues at Deitel & Associates, Inc., they have written many international best-selling programming languages textbooks and professional books that millions of people worldwide have used to master C, C++, Java, C#, XML, Visual Basic®, Perl, Python, and Internet and Web programming.

The DEITEL® Developer Series presents focused treatments of leading-edge technologies, including .NET development, Java development, Web services, and more.

Practical, Example-Rich Coverage Of:
  • Visual Basic 2005, .NET 2.0, FCL
  • ASP.NET 2.0, Web Forms and Controls
  • Database, SQL, and ADO.NET 2.0
  • Networking and .NET Remoting
  • XML, Web Services
  • Generics, Collections
  • GUI/Windows® Forms
  • OOP: Classes, Inheritance, and Polymorphism
  • OOD/UML ATM Case Study
  • Graphics and Multimedia
  • Multithreading
  • Exception Handling
  • And more...
  • Download code examples
  • Check out the extensive Visual Basic Resource Center
  • Check out the growing list of programming, Web 2.0, and software-related Resource Centers
  • To receive updates on this book, subscribe to the free DEITEL® BUZZ ONLINE e-mail newsletter at www.deitel.com/newsletter/subscribe.html
  • Read archived issues of the DEITEL® BUZZ ONLINE
  • Contact deitel@deitel.com for information on corporate training courses delivered on-site worldwide
CD contains Microsoft’s Visual Basic 2005 Express Edition

Sample Content


 Preface: (013225140X  /  6A0JR-6)

[View History]
"Live in fragments no longer, only connect."
—Edgar Morgan Foster

Welcome to the world of Windows, Internet and Web programming with Visual Basic, Visual Studio 2005 and the .NET 2.0 platform! This book presents leading-edge computing technologies to software developers and IT professionals.

At Deitel & Associates, we write computer science textbooks for college students and professional books for software developers. We also teach this material in industry seminars at organizations worldwide.

This book was a joy to create. To start, we put the previous edition under the microscope:

  • We audited our presentation against the most recent Microsoft Visual Basic Language Specification—Version 8—which can be downloaded from
  • We fully updated the book to Visual Studio 2005 and .NET 2.0.
  • All of the chapters have been significantly updated and upgraded.
  • We changed to an early classes and objects pedagogy. Now readers build reusable classes starting with a very friendly treatment in Chapter 4.
  • We updated our object-oriented presentation to use the latest version of the UML (Unified Modeling Language)—UML™ 2.0—the industry-standard graphical language for modeling object-oriented systems.
  • We added an optional OOD/UML automated teller machine (ATM) case study in Chapters 1, 3–9 and 11. The case study includes a complete Visual Basic code implementation of the ATM in Appendix J.
  • We added several multi-section, object-oriented programming case studies.
  • We incorporated key new features of Microsoft’s latest release of Visual Basic—Visual Basic 2005—and added discussions on generics, .NET remoting and debugging.
  • We significantly enhanced our treatment of XML, ADO.NET, ASP.NET and Web services.

All of this has been carefully scrutinized by a substantial team of .NET industry developers, academic professionals and members of theMicrosoft Visual Basic development team.

Who Should Read This Book

We have several Visual Basic publications, intended for different audiences. Visual Basic 2005 for Programmers, 2/e, is part of the Deitel® Developer Series, intended for professional software developers who want a deep treatment of a new technology with minimal introductory material. The book emphasizes achieving program clarity through the proven techniques of structured programming, object-oriented programming (OOP) and event-driven programming. It continues with upper-level topics such as XML, ASP.NET 2.0, ADO.NET 2.0 and Web services. Unlike our How to Program Series college textbooks, the Deitel® Developer Series books do not include the extensive pedagogic features and ancillary support materials required for college courses.

Visual Basic 2005 for Programmers, 2/e presents hundreds of complete, working Visual Basic programs and depicts their inputs and outputs in actual screen shots of running programs. This is our signature “live-code” approach—we present concepts in the context of complete working programs.

As you read this book, if you have questions, send an e-mail to deitel@deitel.com; we will respond promptly. For updates on this book and the status of Visual Basic software, and for the latest news on all Deitel publications and services, please visit www.deitel.com regularly and be sure to sign up for the free Deitel® Buzz Online e-mail newsletter at www.deitel.com/newsletter/subscribe.html. For more information about Visual Basic 2005, check out our Visual Basic resource center at www.deitel.com/VisualBasic. For a complete list of our resource centers, visit www.deitel.com/ResourceCenters.html.

Visual Basic 2005 for Programmers, 2/e Code Examples

You can download the book’s source code from


The examples are in ZIP archive files, so you’ll need a ZIP archive tool such as WinZip (available from www.winzip.com) to extract the files. The examples are organized in an examples folder with a subfolder for each chapter (e.g., ch01, ch02, etc.). The example folders are named FigXX_YY, where XX represents the chapter number and YY represents the figure number. For examples that span multiple figures, the folder name has the format FigXX_YY_ZZ, where YY and ZZ represent the example’s starting and ending figure numbers. We assume in our Chapter 1 “test-drive” instructions that you extract these examples to the C:\ folder on your computer.

Microsoft Visual Basic 2005 Express Edition Software

On November 7, 2005 Microsoft released its Visual Studio 2005 development tools, including the Visual Basic 2005 Express Edition. Per Microsoft’s Web site, Microsoft Express Editions are “lightweight, easy-to-use and easy-to-learn tools for the hobbyist, novice and student developer.” You may use Visual Basic 2005 Express (which is packaged with this book) or a complete version of Visual Studio 2005 to compile and execute the example programs. Visual Basic 2005 Express also can be downloaded from


According to the Microsoft Express Editions FAQ page (msdn.microsoft.com/vstudio/express/support/faq/), “Effective April 19th, 2006, all Visual Studio 2005 Express Editions are free permanently. SQL Serv


Download the Index file from this book.


Submit Errata

More Information

Unlimited one-month access with your purchase
Free Safari Membership