Home > Store

Sams Teach Yourself Visual Basic 6 in 21 Days

Register your product to gain access to bonus material or receive a coupon.

Sams Teach Yourself Visual Basic 6 in 21 Days

Book

  • Sorry, this book is no longer in print.
Not for Sale

About

FAQs

Question 1: On Page 334, Day 11, it said that we already know how to control whether or not the user has formsizing buttons available. How do you control whether or not the user has these?

Solution 1: In the Properties for the form, if you set MaxButton and MinButton to "False," there won't be a Maximize and Minimize button.

If the MaxButton and MinButton are set to "True," there are Maximize and Minimize buttons.



Question 2: Does this book include a CD?

Solution 2: This book does not include a CD. You can get the source code from the author by using the order form on the last page of the book.



Question 3: Trying to install the training kit and got the following messages:

dblist21.ocx - unable to register itself in the system registry.

msadodc.ocx - unable to register itself in the system registry. Acmsetup will not install

Solution 3: You may need to clean out your registry before installing the software. Please visit the following website for more information and the software to download...

http://support.microsoft.com/support/kb/articles/Q147/7/69.asp



Question 4: Where is the MSDN CD?

Solution 4: The "MSDN CD 1" is a part of Microsoft Visual Studio that is sold by Microsoft. This book is written for people who are using the Professional or Enterprise editions of Visual Basic 6.0.



Question 5: Where are the downloadable code samples from the book?

Solution 5: Our book has no mention on the cover about downloading the sample files from the website.

If you'll look on the last page of the book, you'll find a page "Order Your VB Program Disk Today." The author has the code. The offer for the code disk is made by the author, not by Sams Publishing. Mr. Perry, the author, did not send the code to us for placement on the website.



Description

  • Copyright 1998
  • Edition: 1st
  • Book
  • ISBN-10: 0-672-31310-3
  • ISBN-13: 978-0-672-31310-3

Visual Basic programming techniques are presented in a logical and easy-to-follow sequence that helps you really understand the principles involved in developing programs. The reader begins with learning the basics to write a first program and then moves on to adding voice, music, sound, and graphics. After reading this book, the reader will be able to write their own DLLs, create ActiveX controls, use object linking and embedding (OLE) and write Visual Basic programs that support multiple document interface, and much more. Various topics covered are: - Properties, Controls, and Objects - Graphics, Controls & Methods - Interfacing with Windows - Arrays, OLE, and other topics - Data Control and SQL - Multiple Document Interface - ActiveX- Sound Programming and DirectSound - Building ActiveX Controls and all the latest features of Visual Basic.

Sample Content

Table of Contents



Introduction.

WEEK 1 - AT A GLANCE.

Day 1. Welcome to Visual Basic.

Visual Basic's Background. Why Write Programs? 9. Creating Your First Program. Event-Driven Programming. Summary. Q&A. Workshop.

Day 2. Working with Visual Basic.

Understanding the Visual Basic Environment. Getting Help. Getting Used to the Screen. Creating an Application from Scratch. Summary. Q&A. Workshop.

Day 3. Managing Controls.

Studying Controls. Control Focus. Event Procedures. Using Bonus Projects. Summary. Q&A. Workshop.

Bonus Project 1 - Controls, Properties, and Events.

The Visual Elements. Adding the Code. Analysis.

Day 4. Creating Menus.

Using the Application Wizard for Menus. Learning About Menus. Introducing the Menu Editor. Working with the Menu Editor. Summary. Q&A. Workshop.

Day 5. Analyzing VB Data.

A Few Preliminaries. Working Inside the Code Window. The Data in Visual Basic. Working with Variables. Using Variable Storage. Visual Basic's Operators. Analyzing the Order of Operators. Summary. Q&A. Workshop.

Bonus Project 2 - Variables and Expressions.

Analysis.

Day 6. Controlling Programs.

Conditional Operators. Conditional Data. Combining Conditional Operators with Logical Operators. The <F35014M>If Statement Uses Conditional Operators. Completing the <F35014M>If with <F35014M>Else. An Early Exit. Nesting <F35014M>If...Else Statements. Selecting with <F35014M>Select Case. Repeat Code with Loops. Summary. Q&A. Workshop.

Day 7. Advanced Keyboard and Screen Support.

Introduction to Internal Functions. Let the User Respond with <F35014M>MsgBox(). Getting Input with <F35014M>InputBox(). Handling the Keyboard. Additional Controls. Summary. Q&A. Workshop.

Bonus Project 3 - User Input and Conditional Logic.

Creating the Initial Form. The Startup Form's Analysis. Creating the Check Box Form. The Check Box Form's Analysis. Creating the Option Button Form. The Option Button Form's Analysis.

WEEK 1 - IN REVIEW.

WEEK 2 - AT A GLANCE.

Day 8. The Nature Of VB Programs.

Mastering Program Structure. Calling General Procedures. Internal Functions. Summary. Q&A. Workshop.

Day 9. The Dialog Box Control.

The Need for a Common Dialog Box. Adding the Common Dialog Box Control. Working with the Common Dialog Box Control. Producing the Color Dialog Box. Handling the Cancel Button. Producing the Font Dialog Box. Help with Setting Controls. Producing File Open Dialog Boxes. Producing the File Save Dialog Box. Producing the Print Dialog Box. The Help Dialog Box. Summary. Q&A. Workshop.

Day 10. Adding Power with the Mouse and Controls.

Responding to the Mouse. List Box Controls. The Timer Control. Working with Arrays. Summary. Q&A. Workshop.

Bonus Project 4 - Multiple List Boxes.

Preparing for Multiple Selections. Adding the Code. Analysis.

Bonus Project 5 - Practice with the Mouse.

Changing the Mouse Icon. Programming the Mouse. Entering the Code. Analysis. Implementing Automatic Drag-and-Drop. Implementing Manual Drag-and-Drop.

Day 11. Working with Forms.

Properties, Events, and Methods. Form Collections. Placing Text on Forms. Creating New Properties for Forms. Multiple Forms. Placing Toolbars on Forms. Adding Coolbars. Summary. Q&A. Workshop.

Day 12. Interact with Files.

Working with Files. Working with Sequential-Access Files. Working with Random-Access Files. Using the File Controls. Summary. Q&A. Workshop. Quiz.

Bonus Project 6 - Reading and Writing Files.

Creating the Interface. Entering the Code. Analysis.

Day 13. Printing VB Output.

Printer-Based Objects. Controlling the Output. Printing Your Forms. <F35014M>PrintForm Warnings. Don't Surprise Your Users. Summary. Q&A. Workshop.

Day 14. Introducing VB Graphics and Multimedia.

Comparing the Picture Box and Image Controls. The Drawing Controls. Drawing with Methods. The Multimedia Control. Playing Video Clips. Summary. Q&A. Workshop.

Bonus Project 7 - Working with Scrollbars.

Introducing Scrollbars. Building an Application. Entering the Code. Analysis.

WEEK 2 - IN REVIEW.

WEEK 3 - AT A GLANCE.

Day 15. Using Form Templates.

About Form Templates. The Supplied Form Templates. Adding Your Own Form Templates. Summary. Q&A. Workshop.

Day 16. Objects and Visual Basic.

OLE for Outside Objects. Working with Objects. The Object Browser. Summary. Q&A. Workshop.

Day 17. ActiveX Controls.

The Need for ActiveX. Adding ActiveX Controls to a Project. ActiveX Automation. Creating Your Own ActiveX Controls. Summary. Q&A. Workshop.

Bonus Project 8 - Elements That Spruce Up APPS.

The Application's Goal. Creating the Primary Form. Adding the Opening Form's Code. Analysis. Creating the About Box.

Day 18. Interacting with Data.

Database Data and Visual Basic. Learn the Terms. Obtaining Sample Data. The Data Control. Using the VB Application Wizard. Summary. Q&A. Workshop.

Bonus Project 9 - ADO Controls.

The Application's Goal. Creating the Initial Form. Connecting the ADO Control to the Data. Finding Data. Traversing the Data. Table Updates. Concluding with the ADO Control.

Day 19. Adding Internet Access.

The Internet Wizard. Looking at Some Internet Controls. Preview of Advanced Issues. Summary. Q&A. Workshop.

Day 20. Providing Help.

ToolTip and What's This? Help. How Help Fits into an Application. Adding What's This? Help. Summary. Q&A. Workshop.

Day 21. Distributing Your Applications.

Debugging and Testing. Using the Debugger. Distributing Your Application. Summary. Q&A. Workshop.

WEEK 3 - IN REVIEW.

BONUS CHAPTERS.

Day 22. Multidimensional Arrays.

Introduction to Multidimensional Arrays. Using the Grid Control. Summary. Q&A. Workshop.

Day 23. The Windows API.

The Windows API. The Nature of DLLs. Using the <F35014M>Declare Statement. Calling a Simple API Routine. Calling a Different API. Locating the Windows Folder. Summary. Q&A. Workshop.

APPENDIXES.

Appendix A: Answers To Exercises.

Day 1, “Welcome to Visual Basic”. Day 2, “Working with Visual Basic”. Day 3, “Managing Controls”. Day 4, “Creating Menus”. Day 5, “Analyzing VB Data”. Day 6, “Controlling Programs”. Day 7, “Advanced Keyboard and Screen Support”. Day 8, “The Nature of VB Programs”. Day 9, “The Dialog Box Control”. Day 10, “Adding Power with the Mouse and Controls”. Day 11, “Working with Forms”. Day 12, “Interact with Files”. Day 13, “Printing VB Output”. Day 14, “Introducing VB Graphics and Multimedia”. Day 15, “Using Form Templates”. Day 16, “Objects and Visual Basic”. Day 17, “ActiveX Controls”. Day 18, “Interacting with Data”. Day 19, “Adding Internet Access”. Day 20, “Providing Help”. Day 21, “Distributing Your Applications”. Day 22, “Multidimensional Arrays”. Day 23, “The Windows API”.

Appendix B: Operator Precedence.
Appendix C: Ascii Table.
Index.

Updates

Updates & Corrections


Errata compiled by the author, Greg Perry. -- errata.htm

Submit Errata

More Information

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020