Most of the chapters in Bug Proofing Visual Basic end with self-tests that show bad versions of a program. Appendix A explains why the code is bad and shows improved versions.
Some of the chapters also have additional code that demonstrates useful programming techniques.
Click here to download the source code for all of the chapters (79K). To unzip the file, move to an empty directory and use the command:
pkunzip -d errsrc.zip