|
|
![]() | |
|
|
|
To access the contents, click the chapter and section titles.
Visual Basic 6 Black Book
IntroductionWelcome to your Visual Basic support package. Thats what this book has been designed to be: your complete VB support package. Have we reached that goal yet? Its up to you to decide. If what youre looking for is not in this edition, well work hard to make sure its in the nextI encourage your suggestions. Please feel free to write. Well put in the time to make sure this book is the most complete one available on Visual Basic, edition after edition. This is the book we want you to come back to again and again. Ive used Visual Basic back before version 1 even came out publicly and have written many books on the program. I put Visual Basic to work for a very wide range of uses day after day; in fact, its is my favorite programming package of all, and it comes close to being my favorite program period. But Ive never written a book on Visual Basic as complete as this one and never included as many features, documented or undocumented, examples, and tips in one volume. This book has been designed to give you the coverage you just wont find in any other book. Other books often omit not only the larger topics, like deploying your program after youve created it and creating Help files, but also the smaller ones, like covering in depth just about every control that comes with Visual Basic, including the ActiveX controlsfrom the MS chart control to flat scroll bars, from the serial port comm control to the Internet transfer control. Reluctantly, I must admit that its impossible for one volume to be utterly comprehensive on the subject of Visual Basic (impossible because its not physically possible to bind a book that big yet), but were trying our best. Its true that some specialty books might have more coverage on a few topics, but if you want to see more on a particular topic, write in and well work seriously on adding more of that topic to the next edition. How This Book Works The task-based format we use in this book is the one most programmers appreciate because programming is a task-based business. Rather than reading about subjects in the order the author thinks best, you can go directly to your topic of interest and find the bite-sized nugget of information you need, such as opening an FTP connection, adding a Web browser to your program, supporting online user registration from Visual Basic, adding a method to an ActiveX control, creating an error handler, flipping or stretching an image, opening an RDO database connection, playing CDs from the computers CD-ROM drive, and literally hundreds of other topics. And best of all, theres a working example in code for almost every programming topic in the book. The actual process of programming is not abstract; its very applied. So instead of vague generalities, we get down to the specificsall the specificsthat give you everything you need to understand and use Visual Basic. In the old days, programming books used to be very top-down, with chapters on subjects like conditional branching, loop structures, variable declarations, and so forth. But who sits down to program by saying, Im about to create a conditional program flow branch? Instead, programmers are more interested in performing useful tasks, like adding buttons, menus, list boxes, or toolbars to a window; creating graphics animation; creating dialog boxes; creating setup programs; working with files; supporting online Help; and so on. And this book is written for programmers. Because this book is written for programmers, each chapter is broken up into dozens of practical programming tasks. After selecting the chapter you want, you can turn to the table of contents, or to the first page in that chapter, to find the task youre interested in. Hundreds of tasks are covered in this book, chosen as those that programmers most want to see. In addition, this book is filled with nearly 800 examples, covering just about every Visual Basic programming area there is. These examples are bite-sized and to the point, so you dont have to wade through a dozen files trying to understand one simple topic. And theyre as comprehensive as we could make them, covering every programming area in the book. Besides programming tasks and examples, the book also has overviews designed to bring all the pieces together into a coherent whole, giving you the entire picture. The first chapter is designed specifically to give you an overview of Visual Basic itself, along with some of the best programming practices to use, including those recommended by Microsoft. Every subsequent chapter starts with an overview of the subject it covers before digging into the specifics, making sure we never get lost in details. Well also see discussions on best programming practices, program design, program testing, what makes a professional Windows application professional, and much more, as befits a book that wants to be your complete Visual Basic support package. In addition, the CD that accompanies this book holds the code for all the major projects we develop. To open and use a project, look for the Visual Basic project file (for example, browser.vbp for the browser project) and open that project file with Visual Basic. Besides the code from the book, note that the CD has hundreds of megabytes of tools and software, ready for you to use. Whats In This Book Just about everything we could write about Visual Basic is in this book, and thats a lot of ground to cover. From language reference to ADO database handling, from creating Web browsers to dragging and dropping data across applications, from email applications to multimedia players, from creating ActiveX controls and ActiveX documents to setup programs, its all here. Heres some of what well see how to create in this book:
Thats just some of whats coming up. Visual Basic is a very large topic, and the topics well cover number in the hundreds. And if you have suggestions for more, please send them in. What Youll Need To use this book profitably, you should have some experience with Visual Basicnot necessarily a lot, but enough to get through Chapter 1 without trouble. We assume you have some familiarity with the essentials of Visual Basic in this book, although those essentials are not very hard to pick up. If you do have trouble with Chapter 1, you might take a look at an introductory book before proceeding. As far as software goes, just about all you need to use this book is already in Microsoft Visual Basic (well use version 6 in this book). Visual Basic comes with an enormous set of tools and resources, and well have our hands full putting them to work. We try to be as self-contained in this book as possibleeven creating the database files well use in examples with Visual Basic itself, not with a database application. The graphics files we use in various examples are on the CD, and the multimedia files well play in our multimedia examples come with Windows. Some of our OLE and OLE automation examples use Microsoft Excel, but Excel is not essential to those examplesany OLE server and OLE automation server program will do. Note that to use email from Visual Basic, you must have the Windows MAPI system installed (as represented by the Inbox icon on the Windows desktop). Where can you go for additional Visual Basic support? You can find Visual Basic user groups all over, and more are appearing every day. You can also find Visual Basic information (and advertising) at the Microsoft Visual Basic home page at www.microsoft.com/vbasic/, free Visual Basic downloads at http://www.microsoft.com/vbasic/download/, and technical documents (white papers) at http://www.microsoft.com/vbasic/techmat/. Although the content varies in accuracy, there are many Usenet groups dedicated to Visual Basic as well, but be careful what you read theretheres no guarantee its accurate. About two dozen of those groups are hosted by Microsoft, including:
Other, non-Microsoft groups include some of these popular Usenet forums:
And that all the introduction we needits time to start digging into Visual Basic. As weve said, we intend this book to be your complete support package for Visual Basic, so, again, if you see something that should be covered and isnt, let us know. In the meantime, happy reading!
|
|
Products | Contact Us | About Us | Privacy | Ad Info | Home
Use of this site is subject to certain Terms & Conditions, Copyright © 1996-2000 EarthWeb Inc. All rights reserved. Reproduction whole or in part in any form or medium without express written permission of EarthWeb is prohibited. |