BOOK
Simply Visual Basic 2010: An App-Driven Approach
Harvey M. Deitel | Paul J. Deitel | Abbey Deitel
(2014)
Additional Information
Book Details
Abstract
For introductory courses in Visual Basic Programming, offered in departments of Information Technology, Computer Science or Business.
Merging the concept of a lab manual with that of a conventional textbook, the Deitels have crafted an innovative approach that enables students to learn programming while having a mentor-like book by their side. This best-seller blends the Deitel™ signature Live-Code™ Approach with their Application-Driven™ methodology. Students learn programming and Visual Basic by working through a set of applications. Each tutorial builds upon previously learned concepts while learning new ones. An abundance of self assessment exercises are available at the end of most chapters to reinforce key ideas.
This approach makes it possible to cover a wealth of programming constructs within the Visual Basic 2010 environment.
View the Deitel Buzz online to learn more about the newest publications from the Deitels.
Table of Contents
Section Title | Page | Action | Price |
---|---|---|---|
Cover | Cover | ||
Contents\r | 10 | ||
Preface | 17 | ||
Before You Begin | 27 | ||
1 Test-Driving a Painter App\r | 29 | ||
Introducing Computers, the Internet and Visual Basic\r | 29 | ||
1.1 Computing in Business, Industry and Research | 29 | ||
1.2 Hardware and Software | 33 | ||
1.3 Data Hierarchy | 34 | ||
1.4 Computer Organization | 36 | ||
1.5 Machine Languages, Assembly Languages and High- Level Languages | 38 | ||
1.6 Object Technology | 39 | ||
1.7 Microsoft’s Windows® Operating System \r | 41 | ||
1.8 Programming Languages | 41 | ||
1.9 Visual Basic | 42 | ||
1.10 The Internet and the World Wide Web | 43 | ||
1.11 Microsoft .NET | 44 | ||
1.12 Web 2.0: Going Social | 45 | ||
1.13 Test-Driving the Visual Basic Advanced Painter App \r | 49 | ||
1.14 Web Resources | 52 | ||
1.15 Wrap-Up | 52 | ||
2 Welcome App\r | 58 | ||
Introducing the Visual Basic 2010 Express IDE\r | 58 | ||
2.1 Test-Driving the Welcome App \r | 58 | ||
2.2 Overview of the Visual Studio 2010 IDE \r | 59 | ||
2.3 Creating a Project for the Welcome App \r | 61 | ||
2.4 Menu Bar and Toolbar | 65 | ||
2.5 Navigating the Visual Studio IDE; Auto-Hide | 68 | ||
Solution Explorer | 69 | ||
Toolbox | 70 | ||
Properties Window | 70 | ||
2.6 Using Help | 72 | ||
2.7 Saving and Closing Projects in Visual Basic | 73 | ||
2.8 Web Resources | 73 | ||
2.9 Wrap-Up | 73 | ||
3 Welcome App\r | 79 | ||
Introduction to Visual App Development\r | 79 | ||
3.1 Test-Driving the Welcome App \r | 79 | ||
3.2 Constructing the Welcome App \r | 82 | ||
3.3 Objects Used in the App | 92 | ||
3.4 Wrap-Up | 93 | ||
4 Designing the Inventory App\r | 103 | ||
Introducing TextBoxes and Buttons\r | 103 | ||
4.1 Test-Driving the Inventory App \r | 103 | ||
4.2 Constructing the Inventory App\r | 104 | ||
4.3 Adding Labels to the Inventory App \r | 108 | ||
4.4 Adding TextBoxes and a Button to the Form \r | 112 | ||
4.5 Wrap-Up | 114 | ||
5 Completing the Inventory App \r | 121 | ||
Introducing Programming | 121 | ||
5.1 Test-Driving the Inventory App \r | 121 | ||
5.2 Introduction to Visual Basic Program Code | 122 | ||
5.3 Inserting an Event Handler | 125 | ||
5.4 Performing a Calculation and Displaying the Result | 129 | ||
5.5 Using the IDE to Eliminate Compilation Errors | 132 | ||
5.6 Wrap-Up | 135 | ||
6 Enhancing the Inventory App\r | 142 | ||
rIntroducing Variables, Memory Concepts and Arithmetic\r | 142 | ||
6.1 Test-Driving the Enhanced Inventory App \r | 142 | ||
r6.2 Variables \r | 143 | ||
6.3 Handling the TextChanged Event \r | 146 | ||
6.4 Memory Concepts | 148 | ||
6.5 Arithmetic | 149 | ||
6.6 Using the Debugger: Breakpoints | 152 | ||
6.7 Wrap-Up | 155 | ||
7 Wage Calculator App \r | 163 | ||
Introducing Algorithms, Pseudocode and Program Control\r | 163 | ||
7.1 Test-Driving the Wage Calculator App\r | 163 | ||
7.2 Algorithms | 164 | ||
7.3 Pseudocode | 165 | ||
7.4 Control Statements | 166 | ||
7.5 If…Then Selection Statement \r | 168 | ||
7.6 If…Then…Else Selection Statement and Conditional If Expressions \r | 170 | ||
7.7 Constructing the Wage Calculator App \r | 173 | ||
7.8 Assignment Operators | 177 | ||
7.9 Formatting Text | 178 | ||
7.10 Using the Debugger: The Watch Window \r | 181 | ||
7.11 Wrap-Up | 184 | ||
8 Dental Payment App \r | 192 | ||
Introducing CheckBoxes and Message Dialogs\r | 192 | ||
8.1 Test-Driving the Dental Payment App \r | 192 | ||
8.2 Designing the Dental Payment App \r | 195 | ||
8.3 Using CheckBoxes\r | 196 | ||
8.4 Using a Dialog to Display a Message | 198 | ||
8.5 Logical Operators | 202 | ||
Using AndAlso | 202 | ||
Using OrElse | 203 | ||
Short-Circuit Evaluation | 203 | ||
Using Xor | 204 | ||
Using Not | 204 | ||
8.6 Designer-Generated Code | 206 | ||
8.7 Wrap-Up | 207 | ||
9 Car Payment Calculator App\r | 216 | ||
Introducing the Do While…Loop and Do Until…Loop\rRepetition Statements\r | 216 | ||
9.1 Test-Driving the Car Payment Calculator App \r | 216 | ||
9.2 Do While…Loop Repetition Statement \r | 218 | ||
9.3 Do Until…Loop Repetition Statement \r | 220 | ||
9.4 Constructing the Car Payment Calculator App \r | 222 | ||
9.5 Wrap-Up | 229 | ||
10 Class Average App \r | 237 | ||
Introducing the Do…Loop While and Do…Loop Until\rRepetition Statements\r | 237 | ||
10.1 Test-Driving the Class Average App \r | 237 | ||
10.2 Do…Loop While Repetition Statement \r | 239 | ||
10.3 Do…Loop Until Repetition Statement \r | 241 | ||
10.4 Creating the Class Average App \r | 243 | ||
10.5 Wrap-Up | 249 | ||
11 Interest Calculator App \r | 257 | ||
Introducing the For…Next Repetition Statement and\rNumericUpDown Control\r | 257 | ||
11.1 Test-Driving the Interest Calculator App \r | 257 | ||
11.2 Essentials of Counter-Controlled Repetition | 259 | ||
11.3 Introducing the For…Next Repetition Statement \r | 260 | ||
11.4 Examples Using the For…Next Statement \r | 263 | ||
11.5 Constructing the Interest Calculator App \r | 264 | ||
11.6 Wrap-Up | 271 | ||
12 Security Panel App \r | 279 | ||
Introducing the Select Case Multiple-Selection Statement\r | 279 | ||
12.1 Test-Driving the Security Panel App \r | 279 | ||
12.2 Introducing the Select Case Multiple-Selection Statement \r | 281 | ||
12.3 Constructing the Security Panel App \r | 283 | ||
12.4 Wrap-Up | 291 | ||
13 Enhancing the Wage Calculator App \r | 298 | ||
Introducing Function Procedures and Sub Procedures\r | 298 | ||
13.1 Test-Driving the Enhanced Wage Calculator App \r | 298 | ||
13.2 Classes and Procedures | 299 | ||
13.3 Function Procedures \r | 300 | ||
13.4 Using Procedures in the Wage Calculator App \r | 307 | ||
13.5 Using the Debugger: Debugging Controls \r | 311 | ||
13.6 Optional Parameters \r | 314 | ||
13.7 Wrap-Up | 315 | ||
14 Shipping Time App \r | 323 | ||
Using Dates and Timers\r | 323 | ||
14.1 Test-Driving the Shipping Time App \r | 323 | ||
14.2 Date Variables \r | 324 | ||
Declaring a Date Variable | 324 | ||
Using Date Members | 326 | ||
14.3 Creating the Shipping Time App: Design Elements \r | 327 | ||
14.4 Creating the Shipping Time App: Inserting Code \r | 332 | ||
14.5 Wrap-Up | 339 | ||
15 Fund Raiser App \r | 347 | ||
Introducing Scope, Pass-by-Reference and Option Strict\r | 347 | ||
15.1 Test-Driving the Fund Raiser App \r | 347 | ||
15.2 Constructing the Fund Raiser App\r | 349 | ||
15.3 Passing Arguments: Pass-by-Value vs. Pass-by-Reference | 354 | ||
15.4 Option Strict \r | 356 | ||
15.5 Wrap-Up | 362 | ||
16 Craps Game App \r | 369 | ||
Introducing Random-Number Generation and Enum\r | 369 | ||
16.1 Test-Driving the Craps Game App \r | 369 | ||
16.2 Random-Number Generation | 371 | ||
16.3 Constructing the Craps Game App \r | 373 | ||
16.4 Using Random Numbers in the Craps Game App \r | 376 | ||
16.5 Wrap-Up | 383 | ||
17 Flag Quiz App \r | 389 | ||
Introducing One-Dimensional Arrays and ComboBoxes\r | 389 | ||
17.1 Test-Driving the Flag Quiz App \r | 389 | ||
17.2 Introducing Arrays | 391 | ||
17.3 Declaring and Allocating Arrays | 392 | ||
17.4 Constructing the Flag Quiz App \r | 395 | ||
17.5 Sorting Arrays | 405 | ||
17.6 Wrap-Up | 408 | ||
18 Student Grades App \r | 416 | ||
Introducing Two-Dimensional Arrays and RadioButtons\r | 416 | ||
18.1 Test-Driving the Student Grades App \r | 416 | ||
18.2 Two-Dimensional Rectangular Arrays \r | 418 | ||
18.3 Using RadioButtons \r | 420 | ||
18.4 Inserting Code into the Student Grades App \r | 422 | ||
18.5 Wrap-Up | 432 | ||
19 Microwave Oven App\r | 439 | ||
Building Your Own Classes and Objects | 439 | ||
19.1 Test-Driving the Microwave Oven App \r | 439 | ||
19.2 Designing the Microwave Oven App \r | 442 | ||
19.3 Adding a New Class to the Project | 446 | ||
19.4 Initializing Class Objects: Constructors | 448 | ||
19.5 Properties | 450 | ||
19.6 Completing the Microwave Oven App \r | 453 | ||
19.7 Controlling Access to Members | 458 | ||
19.8 Auto-Implemented Properties | 464 | ||
19.9 Using the Debugger: The Locals Window \r | 465 | ||
19.10 Wrap-Up | 467 | ||
20 Shipping Hub App \r | 477 | ||
Introducing Generic Collections, LINQ, For Each…Next and\rAccess Keys\r | 477 | ||
20.1 Test-Driving the Shipping Hub App \r | 477 | ||
20.2 Package Class \r | 479 | ||
20.3 Using Properties TabIndex and TabStop \r | 480 | ||
20.4 Using Access Keys | 482 | ||
20.5 Collections | 483 | ||
20.6 Shipping Hub App: Using Class List(Of T) \r | 484 | ||
20.7 For Each…Next Repetition Statement \r | 492 | ||
20.8 Language-Integrated Query (LINQ) | 493 | ||
20.9 Wrap-Up | 499 | ||
21 Typing App \r | 508 | ||
Introducing Keyboard Events, Menus, Dialogs and the\rDictionary Collection\r | 508 | ||
21.1 Test-Driving the Typing App \r | 508 | ||
21.2 Analyzing the Typing App \r | 511 | ||
21.3 Keyboard Events | 512 | ||
21.4 IsNot Operator \r | 519 | ||
21.5 Menus | 520 | ||
21.6 Wrap-Up | 529 | ||
22 Screen Scraping App\r | 539 | ||
Introducing String Processing\r | 539 | ||
22.1 Test-Driving the Screen Scraping App \r | 539 | ||
22.2 Fundamentals of Strings \r | 541 | ||
22.3 Analyzing the Screen Scraping App \r | 542 | ||
22.4 Locating Substrings in Strings \r | 543 | ||
22.5 Extracting Substrings from Strings \r | 546 | ||
22.6 Replacing Substrings in Strings \r | 546 | ||
22.7 Other String Methods \r | 548 | ||
22.8 Wrap-Up | 550 | ||
23 Ticket Information App \r | 558 | ||
Introducing Sequential-Access Files | 558 | ||
23.1 Test-Driving the Ticket Information App \r | 558 | ||
23.2 Files and Streams | 560 | ||
23.3 Writing to a File—Creating the Write Event App \r | 561 | ||
23.4 Building the Ticket Information App \r | 569 | ||
23.5 Using LINQ and Class File to Extract Data from a Text File \r | 577 | ||
23.6 Wrap-Up | 581 | ||
24 Enhanced Car Payment Calculator App \r | 590 | ||
Introducing Exception Handling | 590 | ||
24.1 Test-Driving the Enhanced Car Payment Calculator App \r | 590 | ||
24.2 Introduction to Exception Handling | 593 | ||
24.3 Exception Handling in Visual Basic | 594 | ||
24.4 Constructing the Enhanced Car Payment Calculator App \r | 595 | ||
24.5 Additional Exception Handling Capabilities | 599 | ||
24.6 Wrap-Up | 600 | ||
25 CheckWriter App\r | 606 | ||
Introducing Graphics and Printing | 606 | ||
25.1 Test-Driving the CheckWriter App \r | 606 | ||
25.2 GDI+ Introduction | 608 | ||
25.3 Constructing the CheckWriter App \r | 609 | ||
25.4 PrintPreviewDialogs and PrintDocuments \r | 612 | ||
25.5 Creating an Event Handler for the CheckWriter App \r | 612 | ||
25.6 Graphics Objects: Colors, Lines and Shapes \r | 615 | ||
Colors | 615 | ||
Drawing Lines, Rectangles and Ovals | 616 | ||
25.7 Printing Each Control of the CheckWriter App \r | 617 | ||
25.8 Font Class \r | 619 | ||
25.9 Previewing and Printing the Check \r | 621 | ||
25.10 Wrap-Up | 627 | ||
26 “Cat and Mouse” Painter App \r | 635 | ||
Introducing Graphics with Windows Presentation\rFoundation (WPF) and Mouse Events\r | 635 | ||
26.1 Test-Driving the Painter App \r | 635 | ||
26.2 Windows Presentation Foundation (WPF) \r | 637 | ||
26.3 XAML (Extensible Application Markup Language) | 637 | ||
26.4 Creating the Painter App’s GUI in WPF \r | 638 | ||
26.5 Constructing the Painter App \r | 652 | ||
26.6 Handling the MouseLeftButtonDown Event \r | 654 | ||
26.7 Handling the MouseLeftButtonUp Event \r | 658 | ||
26.8 Handling the MouseMove Event \r | 659 | ||
26.9 Handling Right Mouse Button Events \r | 661 | ||
26.10 Selecting Colors with RadioButtons \r | 663 | ||
26.11 Wrap-Up | 667 | ||
27 Address Book App \r | 678 | ||
Databases and LINQ | 678 | ||
27.1 Relational Databases | 678 | ||
27.2 A Books Database | 680 | ||
27.3 LINQ to SQL | 683 | ||
27.4 Querying a Database with LINQ | 684 | ||
Creating LINQ to SQL Classes | 685 | ||
Data Bindings Between Controls and the LINQ to SQL Classes | 687 | ||
27.5 Dynamically Binding Query Results | 690 | ||
Creating the Display Query Results GUI | 691 | ||
Coding the Display Query Results Application | 692 | ||
27.6 Retrieving Data from Multiple Tables with LINQ | 694 | ||
27.7 Creating a Master/Detail View Application | 698 | ||
Creating the Master/Detail GUI | 698 | ||
Coding the Master/Detail Application | 700 | ||
27.8 Address Book Case Study | 703 | ||
Creating the Address Book Application’s GUI | 704 | ||
Coding the Address Book Application | 705 | ||
27.9 Tools and Web Resources | 707 | ||
27.10 Wrap-Up | 708 | ||
28 Guestbook App\r | 715 | ||
Web App Development with ASP.NET | 715 | ||
28.1 Web Basics | 716 | ||
28.2 Multitier App Architecture | 717 | ||
28.3 Your First Web App | 718 | ||
Building the WebTime App | 720 | ||
Examining WebTime.aspx’s Code-Behind File | 728 | ||
28.4 Standard Web Controls: Designing a Form | 729 | ||
28.5 Validation Controls | 733 | ||
28.6 Session Tracking | 739 | ||
Cookies | 740 | ||
Session Tracking with HttpSessionState | 741 | ||
28.7 Case Study: Database-Driven ASP.NET Guestbook | 748 | ||
Options.aspx: Selecting a Programming Language | 743 | ||
Recommendations.aspx: Displaying Recommendations Based onSession Values | 746 | ||
Modifying the Code-Behind File for the Guestbook App | 753 | ||
28.8 Wrap-Up | 754 | ||
29 Books Database App\r | 763 | ||
Web App Development with ASP.NET: A Deeper Look\r | 763 | ||
29.1 Case Study: Password-Protected Books Database App | 763 | ||
Examining the ASP.NET Web Site Template | 763 | ||
Test-Driving the Completed App | 766 | ||
Configuring the Website | 767 | ||
Modifying the Default.aspx and About.aspx Pages | 770 | ||
Customizing the Password-Protected Books.aspx Page | 774 | ||
29.2 ASP.NET Ajax | 779 | ||
Traditional Web Apps | 779 | ||
Ajax Web Apps | 779 | ||
Testing an ASP.NET Ajax App | 780 | ||
The ASP.NET Ajax Control Toolkit | 781 | ||
Using Controls from the Ajax Control Toolkit | 782 | ||
29.3 Wrap-Up | 785 | ||
A Operator Precedence Chart\r | 791 | ||
B ASCII Character Set \r | 792 | ||
C GUI Design Guidelines \r | 793 | ||
D Keyword Chart \r | 797 | ||
E Primitive Data Types \r | 799 | ||
Glossary \r | 801 | ||
A | 801 | ||
B | 802 | ||
C | 803 | ||
D | 804 | ||
E | 806 | ||
F | 807 | ||
G | 808 | ||
H | 808 | ||
I | 808 | ||
J | 809 | ||
K | 809 | ||
L | 810 | ||
M | 810 | ||
N | 812 | ||
O | 812 | ||
P | 813 | ||
Q | 814 | ||
R | 814 | ||
S | 815 | ||
T | 817 | ||
U | 818 | ||
V | 818 | ||
W | 818 | ||
X | 819 | ||
Y | 819 | ||
Index \r | 820 |