Home > Store

Simply Visual Basic 2008, 3rd Edition

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

Simply Visual Basic 2008, 3rd Edition

Book

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

About

Features

 Authors are extremely responsive to instructors’ needs.

Signature “Live Code™ Approach” — Language features are presented in the context of a wide variety of complete working programs.

— Focuses on complete working programs.

— Enables students to confirm that programs run as expected. — Students can download the code from the book's Companion Website (www.prenhall.com/deitel) or from the author's website (www.deitel.com).

Outstanding, consistent and applied pedagogy:

— Icons throughout identify Software Engineering Observations; Good Programming Practices; Common Programming Errors; Portability Tips; Performance Tips, Testing and Debugging Tips, and Look-and-Feel Observations.

— Full-color presentation, including syntax coloring, code highlighting, callouts and extensive comments

—       Skills summaries and helpful self-review multiple-choice questions and answers for immediate feedback after each section

Early immersion in visual programming techniques and modifying Visual Basic .NET GUIs giving students a foundation for designing GUIs, concepts that they will apply throughout the book as we teach core programming concepts. Special sections on GUI Design Guidelines and on Controls, Events, Properties & Methods.

Careful introduction to creating objects – while students begin to create objects and classes later in the book; students use objects from .NET’s Framework Class Library throughout the book.

Use of the Unified Modeling Language™ (UML) replaces flowcharts so students gain practice reading the type of diagrams that are used in industry.

Discussion of the Visual Studio .NET Debugger – explains how to use its key features and offers many debugging exercises.

Extensive set of interesting exercises and substantial projects — Enable students to apply what they've learned in each chapter.

Key terms sections in every tutorial and a glossary at the end of the book.

Description

  • Copyright 2009
  • Edition: 3rd
  • Book
  • ISBN-10: 0-13-605303-3
  • ISBN-13: 978-0-13-605303-3

"A fun way of learning VB. Tips and hands-on guidance give readers an amazing running start in software development." —April Reagan (Microsoft Corp.)


"The use of graphics and common application topics will capture student interest. The step-by-step approach enables students to work independently. The integrated debugging is superior to the pedagogical approach taken by competing textbooks. [The ASP.NET 3.5 case study with ASP.NET AJAX] would be an excellent starting example for my classes on ASP.NET programming." —Douglas Bock (Southern Illinois University)


"Using real life case studies is one of the best methods of teaching programming I've seen. Superb job! I can’t believe how easy it is now to add a database to an application." —Edward Hunter, MSCIS (Chapman University College)


"A great collection of practical tutorials and exercises for learning Visual Basic. An excellent book on VB 2008!" —Steve Stein (Microsoft Corporation)


"All you need to start creating great Windows-based and web applications with VB 2008. A crystal-clear explanation of the new LINQ technology." —José Antonio Gonzalez Seco (Parliament of Andalusia)


"The ‘Building Your Own Classes and Objects’ tutorial is well done. Marvelous work with collections. Very well organized tutorial introducing WPF and XAML." —Josh Pauli, Ph.D. (Dakota State University) 


"I think the typing tutor example is an excellent way to explain Windows events and event handling." —Huanhui Hu (Microsoft Corporation)


"The best explanation and simple demonstration of AJAX that I've seen. I loved the Silverlight tutorial." —Christopher J. Olson (Dakota State University)


"Loaded with labs and examples. I particularly enjoyed the chapters on LINQ, Silverlight and WPF." —Chris Williams (Magenic - Microsoft VB MVP)


"Good job introducing Silverlight and how to consume a web service." —Matt Kleinwaks (Abby Rating Systems, Inc. - Microsoft VB MVP)

Simply Visual Basic 2008 Pedagogic Features

Step-by-step tutorials show how to build and execute complete applications, from start to finish
DEITEL¨ signature LIVE-CODE approach presents programming concepts using complete working applications
Includes 32 tutorials and 100+ exercises on real-world applications
Full-color presentation, including syntax coloring, code highlighting, callouts and extensive comments
Skills summaries, UML activity diagrams, pseudocode, access the authors at deitel@deitel.com
Integrated debugging sections and exercises that teach the Visual Studio¨ 2008 Debugger
Tips for improving reliability, performance and usability of your applications
Self-review multiple-choice questions and answers for immediate feedback after each section
At the end of most tutorials: 10 multiple-choice questions, ”What does this code do?” and ”What’s wrong with this code?” exercises, and four real-world programming exercises, including a “Programming Challenge”

Special sections on GUI Design Guidelines and on Controls, Events, Properties & Methods
Key terms sections in every tutorial and a glossary at the end of the book
Instructor resources: PowerPoints¨, test-item file, and www.deitel.com/books/SimplyVB2008

Simply Visual Basic 2008 leverages .NET 3.5’s true power. Its outstanding pedagogic approach comes from Deitel & Associates–the best-selling programming language authors and renowned instructors who, through their books and professional seminars, have taught programming to over 1,000,000 people worldwide.

Application-driven tutorial approach–The authors explore core Visual Basic 2008 concepts in the context of interesting real-world applications such as: Web-Based Bookstore • Address Book • Billing • Car Payments • Check Writer • Class Average • Craps Game • Flag Quiz • Fund Raiser • Graphics Painter • Inventory • Investment Interest • Microwave Oven • Payroll • Screen Scraper • Security Panel • Shipping Hub • Ticket Information • Typing Tutor • Wage Calculator • Weather Information and many more in the exercises

Key topics–Visual Basic¨ 2008 Express IDE • Visual Programming • .NET Framework Class Library • WinForm Controls • Event Handling • Debugger • Control Statements • Methods • Exception Handling • Random Numbers Arrays • Classes • Objects • Collections • Mouse & Keyboard Event Handling • Strings Files • Graphics • GUI Design • LINQ • ASP.NET 3.5 • ASP.NET AJAX • WPF • XAML Database • Web Applications • Web Services • Visual Web Developer™ 2008 90000 Express IDE • Silverlight ™

For information on DEITEL¨ DIVE INTO¨ Series corporate training offered worldwide visit
www.deitel.com/training/.

PRENTICE HALL Upper Saddle River, NJ 07458 www.prenhall.com

Sample Content

Table of Contents

[IMPORTANT: See www.deitel.com/books/SimplyVB2008/ for the latest table of contents.]

1 Drawing Application

Introducing Computers, the Internet and Visual Basic

1.1 What Is a Computer?

1.2 Computer Organization

1.3 Machine Languages, Assembly Languages and High-Level Languages

1.4 Visual Basic

1.5 Other High-Level Languages

1.6 Structured Programming

1.7 Key Software Trend: Object Technology

1.8 The Internet and the World Wide Web

1.9 Introduction to Microsoft .NET

1.10 Test-Driving the Visual Basic Drawing Application

1.11 Web Resources

1.12 Wrap-Up

2 Welcome Application

Introducing the Visual Basic 2008 Express Edition IDE

2.1 Test-Driving the Welcome Application

2.2 Overview of the Visual Basic 2008 Express Edition IDE

2.3 Creating a Project for the Welcome Application

2.4 Menu Bar and Toolbar

2.5 Visual Basic 2008 Express Edition IDE Windows

2.6 Auto-Hide

2.7 Using Help

2.8 Saving and Closing Projects in Visual Basic

2.9 Web Resources

2.10 Wrap-Up

3 Welcome Application

Introduction to Visual Programming

3.1 Test-Driving the Welcome Application

3.2 Constructing the Welcome Application

3.3 Objects Used in the Welcome Application

3.4 Wrap-Up

4 Designing the Inventory Application

Introducing TextBoxes and Buttons

4.1 Test-Driving the Inventory Application

4.2 Constructing the Inventory Application

4.3 Adding Labels to the Inventory Application

4.4 Adding TextBoxes and a Button to the Form

4.5 Wrap-Up

5 Completing the Inventory Application

Introducing Programming

5.1 Test-Driving the Inventory Application

5.2 Introduction to Visual Basic Code

5.3 Inserting an Event Handler

5.4 Performing a Calculation and Displaying the Result

5.5 Using the Debugger: Syntax Errors

5.6 Wrap-Up

6 Enhancing the Inventory Application

Introducing Variables, Memory Concepts and Arithmetic

6.1 Test-Driving the Enhanced Inventory Application

6.2 Variables

6.3 Handling the TextChanged Event

6.4 Memory Concepts

6.5 Arithmetic

6.6 Using the Debugger: Breakpoints

6.7 Internet and Web Resources

6.8 Wrap-Up

7 Wage Calculator Application

Introducing Algorithms, Pseudocode and Program Control

7.1 Test-Driving the Wage Calculator Application

7.2 Algorithms

7.3 Pseudocode

7.4 Control Structures

7.5 If…Then Selection Statement

7.6 If…Then…Else Selection Statement

7.7 Constructing the Wage Calculator Application

7.8 Assignment Operators

7.9 Formatting Text

7.10 Using the Debugger: The Watch Window

7.11 Wrap-Up

8 Dental Payment Application

Introducing CheckBoxes and Message Dialogs

8.1 Test-Driving the Dental Payment Application

8.2 Designing the Dental Payment Application

8.3 Using CheckBoxes

8.4 Using a Dialog to Display a Message

8.5 Logical Operators

8.6 Designer-Generated Code

8.7 Wrap-Up

9 Car Payment Calculator Application

Introducing the Do WhileLoop and Do UntilLoop

Repetition Statements

9.1 Test-Driving the Car Payment Calculator Application

9.2 Do While…Loop Repetition Statement

9.3 Do Until…Loop Repetition Statement

9.4 Constructing the Car Payment Calculator Application

9.5 Wrap-Up

10 Class Average Application

Introducing the DoLoop While and DoLoop Until

Repetition Statements

10.1 Test-Driving the Class Average Application

10.2 Do…Loop While Repetition Statement

10.3 Do…Loop Until Repetition Statement

10.4 Creating the Class Average Application

10.5 Wrap-Up

11 Interest Calculator Application

Introducing the ForNext Repetition Statement

11.1 Test-Driving the Interest Calculator Application

11.2 Essentials of Counter-Controlled Repetition

11.3 Introducing the For…Next Repetition Statement

11.4 Examples Using the For…Next Statement

11.5 Constructing the Interest Calculator Application

11.6 Wrap-Up

12 Security Panel Application

Introducing the Select Case Multiple-Selection Statement

12.1 Test-Driving the Security Panel Application

12.2 Introducing the Select Case Multiple-Selection Statement

12.3 Constructing the Security Panel Application

12.4 Wrap-Up

13 Enhancing the Wage Calculator Application

Introducing Function Procedures and Sub Procedures

13.1 Test-Driving the Enhanced Wage Calculator Application

13.2 Classes and Procedures

13.3 Function Procedures

13.4 Using Sub Procedures in the Wage Calculator Application

13.5 Using the Debugger: Debug Toolbar

13.6 Wrap-Up

14 Shipping Time Application

Using Dates and Timers 289

14.1 Test-Driving the Shipping Time Application

14.2 Date Variables

14.3 Building the Shipping Time Application: Design Elements

14.4 Creating the Shipping Time Application: Inserting Code

14.5 Wrap-Up

15 Fund Raiser Application

Introducing Scope, Pass-by-Reference and Option Strict

15.1 Test-Driving the Fund Raiser Application

15.2 Constructing the Fund Raiser Application

15.3 Passing Arguments: Pass-by-Value vs. Pass-by-Reference

15.4 Option Strict

15.5 Wrap-Up

16 Craps Game Application

Introducing Random-Number Generation

16.1 Test-Driving the Craps Game Application

16.2 Random-Number Generation

16.3 Using Enumerations in the Craps Game Application

16.4 Using Random Numbers in the Craps Game Application

16.5 Wrap-Up

17 Flag Quiz Application

Introducing One-Dimensional Arrays and ComboBoxes

17.1 Test-Driving the Flag Quiz Application

17.2 Introducing Arrays

17.3 Declaring and Allocating Arrays

17.4 Constructing the Flag Quiz Application

17.5 Sorting Arrays

17.6 Wrap-Up

18 Student Grades Application

Introducing Two-Dimensional Arrays and RadioButtons

18.1 Test-Driving the Student Grades Application

18.2 Two-Dimensional Rectangular Arrays

18.3 Using RadioButtons

18.4 Inserting Code into the Student Grades Application

18.5 Wrap-Up

19 Microwave Oven Application

Building Your Own Classes and Objects

19.1 Test-Driving the Microwave Oven Application

19.2 Designing the Microwave Oven Application

19.3 Adding a New Class to the Project

19.4 Initializing Class Objects: Constructors and Object Initializers

19.5 Properties

19.6 Completing the Microwave Oven Application

19.7 Controlling Access to Members

19.8 Using the Debugger: The Locals Window

19.9 Wrap-Up

20 Shipping Hub Application

Introducing Collections, the For EachNext Statement,

Access Keys and Language Integrated Query (LINQ) to Objects

20.1 Test-Driving the Shipping Hub Application

20.2 Package Class

20.3 Using Properties TabIndex and TabStop

20.4 Using Access Keys

20.5 Collections

20.6 Shipping Hub Application: Using Class ArrayList

20.7 For Each…Next Repetition Statement

20.8 Wrap-Up

21 “Cat and Mouse” Painter Application

Introducing the Graphics Object and Mouse Events

21.1 Test-Driving the Painter Application

21.2 Constructing the Painter Application

21.3 Using a Graphics Object

21.4 Handling the MouseDown Event

21.5 Handling the MouseUp Event

21.6 Handling the MouseMove Event

21.7 Distinguishing Between Mouse Buttons

21.8 Wrap-Up

22 Typing Application

Introducing Keyboard Events, Menus and Dialogs

22.1 Test-Driving the Typing Application

22.2 Analyzing the Typing Application

22.3 Keyboard Events

22.4 IsNot Operator

22.5 Menus

22.6 Wrap-Up

23 Screen Scraping Application

Introducing String Processing

23.1 Test-Driving the Screen Scraping Application

23.2 Fundamentals of Strings

23.3 Analyzing the Screen Scraping Application

23.4 Locating Substrings in Strings

23.5 Extracting Substrings from Strings

23.6 Replacing Substrings in Strings

23.7 Other String Methods

23.8 Wrap-Up

24 Ticket Information Application

Introducing Sequential-Access Files

24.1 Test-Driving the Ticket Information Application

24.2 Data Hierarchy

24.3 Files and Streams

24.4 Writing to a File: Creating the Write Event Application

24.5 Building the Ticket Information Application

24.6 Wrap-Up

25 Address Book Application

Introducing Database Programming and

Language Integrated Query (LINQ) to SQL

25.1 Test-Driving the Address Book Application

25.2 Planning the Address Book Application

25.3 Creating Database Connections

25.4 Programming the Address Book Application

25.5 Wrap-Up

26 CheckWriter Application

Introducing Graphics and Printing with

Windows Presentation Foundation (WPF)

26.1 Test-Driving the CheckWriter Application

26.2 GDI+ Introduction

26.3 Constructing the CheckWriter Application

26.4 PrintPreviewDialogs and PrintDocuments

26.5 Creating an Event Handler for the CheckWriter Application

26.6 Graphics Objects: Colors, Lines and Shapes

26.7 Printing Each Control of the CheckWriter Application

26.8 Font Class

26.9 Previewing and Printing the Check

26.10 Wrap-Up

27 Phone Book Application

Introducing Multimedia with

Windows Presentation Foundation (WPF)

27.1 Microsoft Agent

27.2 Downloading Microsoft Agent Components

27.3 Test-Driving the Phone Book Application

27.4 Constructing the Phone Book Application

27.5 Wrap-Up

28 Bookstore Application: Web Applications

Introducing Visual Web Developer 2008 Express and the

ASP.NET Development Server

28.1 Multi-Tier Architecture

28.2 Web Servers

28.3 Visual Web Developer 2008 Express and the ASP.NET Development Server

28.4 Test-Driving the Bookstore Application

28.5 Wrap-Up

29 Bookstore Application: Client Tier

Introducing Web Controls

29.1 Analyzing the Bookstore Application

29.2 Creating ASPX Pages

29.3 Designing the Books.aspx Page

29.4 Designing the BookInformation.aspx Page

29.5 Wrap-Up

30 Bookstore Application: Information Tier

Examining the Database, Creating Database Components

and Using LINQ to SQL

30.1 Reviewing the Bookstore Application

30.2 Information Tier: Database

30.3 Using the Server Explorer and Query Builder in ASPX Pages

30.4 Wrap-Up

31 Bookstore Application: Middle Tier

Introducing Code-Behind Files and Databound Web controls

31.1 Reviewing the Bookstore Application

31.2 Programming the Books Page’s Code-Behind File and Creating a

Databound ListBox

31.3 Coding the BookInformation Page’s Code-Behind File and

Creating a Databound DetailsView

31.4 Internet and Web Resources

31.5 Wrap-Up

32 Enhanced Car Payment Calculator Application

Introducing Exception Handling

32.1 Test-Driving the Enhanced Car Payment Calculator Application

32.2 Introduction to Exception Handling

32.3 Exception Handling in Visual Basic

32.4 Constructing the Enhanced Car Payment Calculator Application

32.5 Wrap-Up

A Operator Precedence Chart

B ASCII Character Set

C GUI Design Guidelines

D Visual Basic 2008 Express Windows Form Designer Tools

D.1 Internet and Web Resources

E Keyword Chart

Glossary

Index

Updates

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