Flylib.com

Books Software

 
 
 

Copyright

   

Copyright 2002, 2001 O'Reilly & Associates, Inc. All rights reserved.

Printed in the United States of America.

Published by O'Reilly & Associates, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472.

O'Reilly & Associates books may be purchased for educational, business, or sales promotional use. Online editions are also available for most titles (safari.oreilly.com). For more information contact our corporate/institutional sales department: (800) 998-9938 or corporate@oreilly.com.

Nutshell Handbook, the Nutshell Handbook logo, and the O'Reilly logo are registered trademarks of O'Reilly & Associates, Inc. The association of the image of a catfish and the topic of VB.NET language is a trademark of O'Reilly & Associates, Inc. ActiveX, IntelliSense, JScript, Microsoft, MS-DOS, Outlook, Visual Basic, Visual C++, Visual Studio, Win32, Windows, and Windows NT are registered trademarks, and Visual C# is a trademark of Microsoft Corporation.

While every precaution has been taken in the preparation of this book, the publisher and author(s) assume no responsibility for errors or omissions, or for damages resulting from the use of the information contained herein.

   
   

Why Another VB Book?

There are literally hundreds of books lining the shelves on how to program using Visual Basic, and they will no doubt be joined by a flood of books on how to program in VB.NET. The majority of these books assume that you're a complete novice and slowly introduce you to such concepts as variables , arrays, and looping structures.

This is a different kind of book, however. It is a detailed, professional reference to the VB.NET language ” a reference that you can turn to if you want to jog your memory about a particular language element or a particular parameter. You're also looking for a reference that you can turn to when you're having difficulty programming and need to review the rules for using a particular language element, or when you want to check that there isn't some "gotcha" you've overlooked that is associated with a particular language element.

In addition, we believe this book will serve as the main reference for VB 6 programmers who are upgrading to VB.NET. To this end, we have devoted considerable space to the extensive language differences between VB 6 and VB.NET. For each relevant language entry, we have included a "VB.NET/VB 6 Differences" section that details the differences in the operation of the language element between VB 6 and VB.NET.

   
   

Who This Book Is For

Just like any reference (such as a dictionary), this book will be useful to many types of readers:

  • Developers who have used previous versions of Visual Basic

  • Developers who are new to Visual Basic, but who have been developing applications in other programming languages, such as C++

  • Those who are learning VB.NET as their first language and would like to have a definitive language reference on their shelf

Readers New to Visual Basic

If you are new to the Visual Basic language, then you will want to pay particular attention to the first half of the book, which discusses many important areas of programming under VB.NET, including variables , data types, the basic principles of object-oriented programming, and error-handling techniques.

VB and VBScript Developers New to VB.NET

Some critics have argued that VB.NET is an entirely new language. While we wouldn't go quite that far, we do agree not only that the language changes have been extensive , but that the new .NET platform will result in a paradigm shift that affects the way we think about application development. So in many ways, as a VB or VBScript developer new to VB.NET, you may find yourself in a position similar to that of a developer who is new to all forms of VB.NET.

However, one of our goals was to develop a book that will ease the thorny transition to VB.NET from earlier versions of VB. In particular, the first nine chapters of the book offer a rapid introduction to VB.NET and its new features. Appendix A discusses many of the major language changes between VB 6 and VB.NET, while Appendix F lists VB 6 language elements that are no longer supported in VB.NET. Finally, if version differences exist in a language element, we include a "VB.NET/ VB 6 Differences" section that shows you precisely how the behavior of that element has changed from VB 6 to VB.NET.

Existing VB.NET Developers

As we write the second edition of this book, VB.NET is brand new (the initial version of the .NET Framework and Visual Studio .NET have just been released to manufacturing), so existing VB.NET developers are a rarity. But we believe that, given the strengths of VB.NET, this situation will change quickly. As you continue to develop in VB.NET, we believe you will find that VB.NET Language in a Nutshell retains its value. As an experienced developer, you can delve into the book to get the lowdown on a language element that interests you or that seems to be behaving erratically or unexpectedly in your code. Appendix B details all of the language elements by category to help you find the relevant entry in the language reference more easily.