Register your product to gain access to bonus material or receive a coupon.
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.
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.
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.