Skip to main content

Visual Basic .NET All-In-One Desk Reference For Dummies



Visual Basic .NET All-In-One Desk Reference For Dummies

Richard Mansfield

ISBN: 978-0-764-52579-7 March 2003 816 Pages


* Covers all aspects of VB .NET programming in seven self-contained minibooks: Visual Basic .NET Programming Fundamentals, Advanced Visual Basic .NET Programming, The .NET Editor, Object-Oriented Programming, Programming for the Web, Database Programming, and Graphics and Games
* Visual Basic is the primary tool of more than fifty percent of all professional developers, so the upgrade to VB .NET represents a major paradigm shift; this handy all-in-one guide gives them easy access to valuable information
* Guides the reader through getting integrated with the rest of Visual Studio .NET, covers programmatic encryption and other .NET security capabilities, and shows how to program for Web services with VB .NET and ASP.NET
* Companion Web site includes a must-have bonus appendix that provides parallel VB 6 and VB .NET sample code to help VB programmers make the somewhat difficult transition to .NET
Introduction: Welcome to .NET 1

Book I The Fundamentals of Visual Basic .NET Programming 11

Chapter 1: Getting With the Program 13

Chapter 2: Common Tasks 21

Chapter 3: Managing Files and Directories 49

Chapter 4: Old Concepts in New Clothes 57

Book II Tapping the Power of .NET Editor 73

Chapter 1: Organizing Your Projects 75

Chapter 2: Viewing Your Work 85

Chapter 3: Investigating the Toolbox 97

Chapter 4: Windows, Windows Everywhere 113

Chapter 5: Customization — Doing It Your Way 125

Book III Advanced Visual Basic .NET Programming 133

Chapter 1: Understanding Variable Types 135

Chapter 2: Working with Arrays 157

Chapter 3: Serious Serialization and Streams 171

Chapter 4: Creating Runtime Controls 191

Chapter 5: Overloaded Functions and Parameters 207

Chapter 6: Smashing Bugs 217

Chapter 7: No More Paranoia — Programmatic Encryption 233

Book IV Programming for the Web 259

Chapter 1: Introduction to ASP.NET 261

Chapter 2: Everything’s Eventual 277

Chapter 3: Using ASP.NET Controls 291

Chapter 4: Making Database Connections on WebForms 303

Chapter 5: Creating a Web Service 317

Chapter 6: Bugs in the Web 335

Book V Visual Basic .NET Database Programming 351

Chapter 1: The Basics of Databases 353

Chapter 2: User Interface Techniques 377

Chapter 3: Managing DataSets 403

Chapter 4: Migrating to ADO.NET 429

Chapter 5: Deeper into ADO.NET 449

Chapter 6: Querying Data 463

Book VI Fun and Games with Graphics 489

Chapter 1: You Be Picasso 491

Chapter 2: The Creative Photographer 517

Chapter 3: Mastering .NET Printing (It’s Complicated Until You Know How) 527

Chapter 4: Constructing Wolfram Diagrams 541

Book VII Visual Basic .NET Object-Oriented Programming 559

Chapter 1: Introduction to OOP 561

Chapter 2: Creating Classes 571

Chapter 3: Inheritance 579

Chapter 4: Your First OOP Project 589

Chapter 5: Exploiting the .NET Framework 605

Appendix: Dictionary of VB.NET 623

Index 753

Bonus Content: Appendix F: A Dictionary of VB .NET
To view the Bonus Content you must have Acrobat Reader installed on your computer. To install visit
Chapter Code Samples

You'll find sample code from the chapters here.

The download files are in a compressed format. You will need a program like WinRAR to decompress the files to your hard drive. You can download WinRAR at

To download the included code samples, follow these steps:

  1. Click to download sourcecode.rar (30.2 KB).
  2. Or click to download a self extracting file sourcecode.exe (81.9 KB)
  3. Choose a location to save the file on your hard drive.
  4. After the download is complete, run WinRAR or another software program that decompresses rar files and extract "sourcecode.rar" into the directory of your choice. Alternately you can simply double click and run the sourcecode.exe file and extract the contents into the directory of your choice.
Chapter Code Samples (self extracting file)