PRE-PUBLICATION REVIEWER TESTIMONIALS
“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!”The practicing programmer’s DEITEL® guide to Visual Basic and the powerful Microsoft .NET Framework
—James Huddleston, Independent Consultant
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:
Preface: (013225140X / 6A0JR-6)
"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:
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.
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
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,
regularly and be sure to sign up for the free Deitel® Buzz
Online e-mail newsletter at
For more information about Visual Basic 2005, check out our Visual Basic resource
For a complete list of our resource centers, visit
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
to extract the files. The examples are organized in an
folder with a subfolder for each chapter (e.g.,
ch01, ch02, etc.).
The example folders are named
the chapter number and
YY represents the figure number. For examples
that span multiple figures, the folder name has the format
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
on your computer.
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 (
“Effective April 19th, 2006, all Visual Studio 2005 Express Editions are
free permanently. SQL Serv
Download the Index file from this book.