Sams Teach Yourself Visual Basic 2008 in 24 Hours: Complete Starter Kit (Sams Teach Yourself Series)


In just 24 sessions of one hour or less, you will be up and running with Visual Basic 2008. Using a straightforward, step-by-step approach, each lesson builds upon a real-world foundation forged in both technology and business matters, allowing you to learn the essentials of Visual Basic 2008 from the ground up. Step-by-step instructions carefully walk you through the most common questions, issues, and tasks. The Q&A section, quizzes, and exercises help you build and test ...

See more details below
Paperback (DVD-ROM)
$26.41 price
(Save 24%)$34.99 List Price

Pick Up In Store

Reserve and pick up in 60 minutes at your local store

Other sellers (Paperback)
  • All (21) from $1.99   
  • New (2) from $21.80   
  • Used (19) from $1.99   
Sending request ...


In just 24 sessions of one hour or less, you will be up and running with Visual Basic 2008. Using a straightforward, step-by-step approach, each lesson builds upon a real-world foundation forged in both technology and business matters, allowing you to learn the essentials of Visual Basic 2008 from the ground up. Step-by-step instructions carefully walk you through the most common questions, issues, and tasks. The Q&A section, quizzes, and exercises help you build and test your knowledge.

By the Way notes present interesting pieces of information. Did You Know? tips offer advice or teach an easier way to do something. Watch Out! cautions advise you about potential problems and help you steer clear of disaster.

Learn how to…

  • Use the powerful design environment of Visual Studio 2008

  • Design feature-rich interfaces using components such as tree views and tabs

  • Create robust applications using modern error-handling

  • Draw fast graphics using GDI+

  • Build a database application using ADO.NET

  • Distribute a Visual Basic 2008 Application

  • Manipulate the Windows Registry

  • Create, read, and write text files

  • Use event-driven techniques to build responsive applications

DVD Includes: Microsoft Visual Basic 2008 Express Edition

On the Web: Register your book at for access to author code, examples, updates and corrections as they become available.

Read More Show Less

Product Details

  • ISBN-13: 9780672329845
  • Publisher: Sams
  • Publication date: 5/28/2008
  • Series: Sams Teach Yourself Series
  • Edition description: DVD-ROM
  • Pages: 576
  • Sales rank: 1,186,201
  • Product dimensions: 6.80 (w) x 9.00 (h) x 1.40 (d)

Meet the Author

James Foxall is vice president of Tigerpaw Software, Inc. (, a Bellevue, Nebraska, Microsoft Certified Partner specializing in commercial database applications. He manages the development, support, training, and education of Tigerpaw CRM+, an award-winning CRM product designed to automate contact management, marketing, service and repair, proposal generation, inventory control, and purchasing. At the start of 2008, the current release of Tigerpaw CRM+ had more than 16,000 licensed users. Foxall’s experience in creating certified Office-compatible software has made him an authority on application interface and behavior standards of applications for the Microsoft Windows and Microsoft Office environments.

Foxall has been writing commercial production Visual Basic code for more than 14 years, in both single-programmer and multiple-programmer environments. He’s the author of numerous books, including Practical Standards for Microsoft Visual Basic and MCSD in a Nutshell: The Visual Basic Exams. He also has written articles for Access-Office-VBA Advisor and Visual Basic Programmer’s Journal. Foxall has a bachelor’s degree in management of information systems (MIS). He is a Microsoft Certified Solution Developer and an international speaker on Microsoft Visual Basic. When not programming or writing about programming, he enjoys spending time with his family, playing guitar, listening to amazing bands like Pink Floyd and OSI, and playing computer games. You can reach him at

Read More Show Less

Read an Excerpt


Visual Basic 2008 is Microsoft's latest incarnation of the enormously popular Visual Basic language, and it's fundamentally different from the versions that came before it. Visual Basic 2008 is now more powerful and more capable than ever before, and its features and functionality are on par with "higher-level" languages such as C++. One consequence of this newfound power is added complexity. Gone are the days when you could sit down with Visual Basic and the online Help and teach yourself what you needed to know to create a functional program.Audience and Organization

This book is targeted toward those who have little or no programming experience or who might be picking up Visual Basic as a second language. The book has been structured and written with a purpose: to get you productive as quickly as possible. I've used my experiences in writing large commercial applications with Visual Basic and teaching Visual Basic to create a book that I hope cuts through the fluff and teaches you what you need to know. All too often, authors fall into the trap of focusing on the technology rather than on the practical application of the technology. I've worked hard to keep this book focused on teaching you practical skills that you can apply immediately toward a development project. Feel free to post your suggestions or success stories at

This book is divided into five parts, each of which focuses on a different aspect of developing applications with Visual Basic 2008. These parts generally follow the flow of tasks you'll perform as you begin creating your own programs usingVisual Basic 2008. I recommend that you read them in the order in which they appear.

  • Part I, "The Visual Basic 2008 Environment," teaches you about the Visual Basic environment, including how to navigate and access Visual Basic's numerous tools. In addition, you'll learn about some key development concepts such as objects, collections, and events.

  • Part II, "Building a User Interface," shows you how to build attractive and functional user interfaces. In this part, you'll learn about forms and controls—the user interface elements such as text boxes and list boxes.

  • Part III, "Making Things Happen: Programming," teaches you the nuts and bolts of Visual Basic 2008 programming—and there's a lot to learn. You'll discover how to create modules and procedures, as well as how to store data, perform loops, and make decisions in code. After you've learned the core programming skills, you'll move into object-oriented programming and debugging applications.

  • Part IV, "Working with Data," introduces you to working with graphics, text files, and programming databases and shows you how to automate external applications such as Word and Excel. In addition, this part teaches you how to manipulate a user's file system and the Windows Registry.

  • Part V, "Deploying Solutions and Beyond," shows you how to distribute an application that you've created to an end user's computer. In Hour 24, "The 10,000-Foot View," you'll learn about Microsoft's .NET initiative from a higher, less-technical level.

Many readers of previous editions have taken the time to give me input on how to make this book better. Overwhelmingly, I was asked to have examples that build on the examples in the previous chapters. In this book, I have done that as much as possible. Now, instead of learning concepts in isolated bits, you'll be building a feature-rich Picture Viewer program throughout the course of this book. You'll begin by building the basic application. As you progress through the chapters, you'll add menus and toolbars to the program, build an Options dialog box, modify the program to use the Windows Registry and a text file, and even build a setup program to distribute the application to other users. I hope you find this approach beneficial in that it allows you to learn the material in the context of building a real program.Conventions Used in This Book

This book uses several design elements and conventions to help you prioritize and reference the information it contains:

Note - By the Way boxes provide useful sidebar information that you can read immediately or circle back to without losing the flow of the topic at hand.

Tip - Did You Know? boxes highlight information that can make your Visual Basic programming more effective.

Caution - Watch Out! boxes focus your attention on problems or side effects that can occur in specific situations.

New terms appear in a semibold typeface for emphasis.

In addition, this book uses various typefaces to help you distinguish code from regular English. Code is presented in a monospace font. Placeholders—words or characters that represent the real words or characters you would type in code—appear in italic monospace. When you are asked to type or enter text, that text appears in bold.

Menu options are separated by a comma. For example, when you should open the File menu and choose the New Project menu option, the text says "Select File, New Project."

Some code statements presented in this book are too long to appear on a single line. In these cases, a line-continuation character (an underscore) is used to indicate that the following line is a continuation of the current statement.Onward and Upward!

This is an exciting time to be learning how to program. It's my sincerest wish that when you finish this book, you feel capable of creating, debugging, and deploying modest Visual Basic programs using many of Visual Basic's tools. Although you won't be an expert, you'll be surprised at how much you've learned. And I hope this book will help you determine your future direction as you proceed down the road to Visual Basic mastery.

I love programming with Visual Basic, and sometimes I find it hard to believe I get paid to do so. I hope you find Visual Basic as enjoyable as I do!

© Copyright Pearson Education. All rights reserved.

Read More Show Less

Table of Contents

Introduction 1

Pt. I The Visual Basic 2008 Environment

Hour 1 Jumping in with Both Feet: A Visual Basic 2008 Programming Tour 7

Hour 2 Navigating Visual Basic 2008 33

Hour 3 Understanding Objects and Collections 63

Hour 4 Understanding Events 85

Pt. II Building a User Interface

Hour 5 Building Forms: The Basics 105

Hour 6 Building Forms: Advanced Techniques 127

Hour 7 Working with Traditional Controls 155

Hour 8 Using Advanced Controls 183

Hour 9 Adding Menus and Toolbars to Forms 203

Pt. III Making Things Happen: Programming

Hour 10 Creating and Calling Code Procedures 229

Hour 11 Using Constants, Data Types, Variables, and Arrays 249

Hour 12 Performing Arithmetic, String Manipulation, and Date/Time Adjustments 281

Hour 13 Making Decisions in Visual Basic Code 305

Hour 14 Looping for Efficiency 323

Hour 15 Debugging Your Code 337

Hour 16 Designing Objects Using Classes 361

Hour 17 Interacting with Users 381

Pt. IV Working with Data

Hour 18 Working with Graphics 405

Hour 19 Performing File Operations 425

Hour 20 Working with Text Files and the Registry 443

Hour 21 Working with a Database 467

Hour 22 Controlling Other Applications Using Automation 485

Pt. V Deploying Solutions and Beyond

Hour 23 Deploying Applications 499

Hour 24 The 10,000-Foot View 509

Index 517

Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star


4 Star


3 Star


2 Star


1 Star


Your Rating:

Your Name: Create a Pen Name or

Barnes & Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation


  • - By submitting a review, you grant to Barnes & and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Terms of Use.
  • - Barnes & reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously
Sort by: Showing all of 5 Customer Reviews
  • Posted April 25, 2010

    I Also Recommend:

    James Foxall GREAT!!!

    This book is probably the best book I've read about VB 2008 programming. I also like the fact he's teaching and having you create a photo viewer application while building on every chapter on top of each other. This book will definitely build your knowledge for beginners and experts.

    1 out of 1 people found this review helpful.

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted March 6, 2009

    pretty good book

    Pretty good book if you are already somewhat familiar with VB.
    Light on teaching code.
    Would be a good first book, to be followed by a good code book.

    1 out of 1 people found this review helpful.

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted June 29, 2009

    No text was provided for this review.

  • Anonymous

    Posted December 23, 2009

    No text was provided for this review.

  • Anonymous

    Posted October 5, 2009

    No text was provided for this review.

Sort by: Showing all of 5 Customer Reviews

If you find inappropriate content, please report it to Barnes & Noble
Why is this product inappropriate?
Comments (optional)