Synopses & Reviews
When Microsoft made Visual Basic into an object-oriented programming language, millions of VB developers resisted the change to the .NET platform. Now, after integrating feedback from their customers and creating Visual Basic 2005, Microsoft finally has the right carrot. Visual Basic 2005 offers the power of the .NET platform, yet restores the speed and convenience of Visual Basic. Accordingly, we've revised the classic in a Nutshell guide to the Visual Basic language to cover the Visual Basic 2005 version and all of its new features.
Unlike other books on the subject, Visual Basic 2005 in a Nutshell, 3rd Edition doesn't assume you're a novice. It's a detailed, professional reference to the Visual Basic language-a reference that you can use to jog your memory about a particular language element or parameter. It'll also come in handy when you want to make sure that there isn't some "gotcha" you've overlooked with a particular language feature.
The book is divided into three major parts: Part I introduces the main features and concepts behind Visual Basic programming; Part II thoroughly details all the functions, statements, directives, objects, and object members that make up the Visual Basic language; and Part III contains a series of helpful appendices. Some of the new features covered include Generics, a convenient new library called My Namespace, and the operators used to manipulate data in Visual Basic.
No matter how much experience you have programming with Visual Basic, you want Visual Basic 2005 in a Nutshell, 3rd Edition close by, both as a standard reference guide and as a tool for troubleshooting and identifying programming problems.
Synopsis
The classic Nutshell guide to Microsoft's Visual Basic programming language is completely revised and reorganized to cover the forthcoming VB 3005 version, as well as VB .NET 1.1.
Synopsis
When Microsoft remade Visual Basic into an object-oriented programming language similar to Java, millions of VB developers resisted the change. But after integrating feedback from these customers, Microsoft has returned with Visual Basic 2005, a version that includes the compile-and-run feature and dozens of interactive tools and controls that made earlier versions of Visual Basic such a popular rapid application development language. Now, developers can have the power of the .NET platform and the speed and convenience of Visual Basic.
Visual Basic 2005 in a Nutshell is the ideal guide to all the changes in this new version. Starting with an overview of VB 2005, including basic programming concepts and an introduction to the .NET Framework Class Library, this unparalleled reference has been completely revised. The bulk of the book presents an alphabetical reference to Visual Basic 2005 statements, procedures, functions, and objects. Plus, there is an invaluable section for diagnosing or avoiding potential programming problems, and tips and warnings about undocumented behaviors. No matter how much experience readers have with VB, they'll want this book close by, both as a standard reference guide and as a tool for troubleshooting and identifying programming problems.
About the Author
Tim Patrick is Senior Software Architect at TiMaki Services developing custom client/server and multi-tier software solutions targeting Microsoft Windows client workstations and Internet/Intranet/Extranet users. Tim has over twenty years experience in software development and software architecture. He is a Microsoft Certified Solution Developer (MCSD). He wrote The Visual Basic Style Guide and its successor, The Visual Basic .NET Style Guide. He has also published many magazine articles on topics related to Visual Basic development.
Steven Roman, Ph.D., is a professor emeritus of mathematics at the California State University, Fullerton. His previous books with O'Reilly include "Access Database Design and Programming", "Writing Excel Macros with VBA", and "Win32 API Programming with Visual Basic".
Ron Petrusha is an editor for O'Reilly and is the author/coauthor of many books, including VBScript in a Nutshell. Ron has a background in quantitative labor history, specializing in Russian labor history, and holds degrees from the University of Michigan and Columbia University. He began working with computers in the mid 1970s, programming in SPSS (a programmable statistical package) and FORTRAN on the IBM 370 family. Since then, he has been a computer book buyer, an editor of a number of books on Windows and Unix, and a consultant on projects written in dBASE, Clipper, and Visual Basic.
Paul Lomax, author of O'Reilly's VB & VBA in a Nutshell and a coauthor of VBScript in a Nutshell, is an experienced VB programmer with a passion for sharing his knowledge--and his collection of programming tips and techniques gathered from real-world experience.
Table of Contents
Preface; Why Another Visual Basic Book?; Who This Book Is For; How This Book Is Structured; About the Third Edition; Using Code Examples; Conventions Used in This Book; Safari® Enabled; How to Contact Us; Acknowledgments; Part I: The Basics; Chapter 1: Introduction; 1.1 Why Visual Basic .NET?; 1.2 What Is Visual Basic .NET?; 1.3 What Can You Do with Visual Basic .NET?; 1.4 Versions of Visual Basic for .NET; Chapter 2: The .NET Framework: General Concepts; 2.1 Common Language Runtime; 2.2 Managed Code; 2.3 Namespaces; 2.4 Types and Objects; 2.5 Assemblies; 2.6 The Framework Class Library; 2.7 Application Deployment; 2.8 The .NET Framework and Visual Basic; Chapter 3: Introduction to Object-Oriented Programming; 3.1 Principles of Object-Oriented Programming; 3.2 OOP Development in Visual Basic; Chapter 4: Variables and Data Types; 4.1 Data Types; 4.2 Variables; 4.3 Constants; 4.4 Enumerations; 4.5 Arrays; 4.6 Collections; 4.7 Parameters and Arguments; Chapter 5: Operators; 5.1 Arithmetic Operators; 5.2 Concatenation Operators; 5.3 Logical and Bitwise Operators; 5.4 Assignment Operators; 5.5 Comparison Operators; 5.6 Object Operators; 5.7 Operator Overloading; 5.8 Operator Precedence; Chapter 6: Program Structure; 6.1 Visual Studio Application Types; 6.2 Referencing Components and Classes; 6.3 Application Entry Points; 6.4 Code File Contents; 6.5 The Structure of a Visual Basic Program; Chapter 7: The .NET Framework Class Library; 7.1 The System Namespace; 7.2 The System.Collections Namespace; 7.3 The System.Data Namespace; 7.4 The System.IO Namespace; 7.5 The System.Text.RegularExpressions Namespace; 7.6 The System.Windows.Forms Namespace; 7.7 Other Namespaces; Chapter 8: Delegates and Events; 8.1 Delegates; 8.2 Events and Event Binding; Chapter 9: Attributes; 9.1 Syntax and Use; 9.2 Defining a Custom Attribute; 9.3 Using a Custom Attribute; Chapter 10: Generics; 10.1 What Are Generics?; 10.2 Type Parameters; 10.3 Multiple Type Parameters; 10.4 Constraints; 10.5 Multiple Constraints; 10.6 Accessing Type Parameter Members; 10.7 Generic Methods; 10.8 Nested Generic Types; 10.9 Overloaded Types and Members; Chapter 11: Error Handling in Visual Basic; 11.1 Error Detection and Error Handling; 11.2 Runtime Error Handling; 11.3 Dealing with Logic Errors; 11.4 Error Constants; Part II: Reference; Chapter 12: The Language Reference; Chapter 13: The 'My' Reference; Part III: Appendixes; Appendix A: Language Elements by Category; A.1 Array Handling; A.2 Clipboard; A.3 Collection Objects; A.4 Common Dialogs; A.5 Conditional Compilation; A.6 Conversion; A.7 Date and Time; A.8 Debugging; A.9 Declaration; A.10 Error Handling; A.11 File System; A.12 Financial; A.13 Information; A.14 Input/Output; A.15 Integrated Development Environment; A.16 Interaction; A.17 Mathematics; A.18 Program Structure and Flow; A.19 Programming; A.20 Registry; A.21 String Manipulation; Appendix B: Namespace Hierarchy; B.1 'My' Namespace Hierarchy; B.2 System Namespace Hierarchy; Appendix C: Constants and Enumerations; C.1 Visual Basic Intrinsic Constants; C.2 ControlChars Class; C.3 Visual Basic Enumerations; Appendix D: What's New and Different in Visual Basic .NET 2002; D.1 Language Changes in VB.NET 2002; D.2 Changes to Programming Elements; D.3 Obsolete Programming Elements; D.4 Structured Exception Handling; D.5 Changes in Object Orientation; Appendix E: What's New and Different in Visual Basic .NET 2003; E.1 Language Changes in VB.NET 2003; Appendix F: What's New and Different in Visual Basic 2005; F.1 Enhancements of Existing Functionality; F.2 The 'My' Namespace; F.3 Other New Features; Appendix G: VB 6 Language Elements No Longer Supported; Appendix H: The Visual Basic Command-Line Compiler; H.1 Compiler Basics; H.2 Command-Line Switches; H.3 Using a Response File; H.4 Conditional Compilation Constants; Colophon;