GO TO
Starting Out with Visual Basic 2008, Fourth Edition
by
Tony Gaddis; Kip Irvine
Publisher: Addison-Wesley
Publishing Date: 2008/02/12
eText ISBN-10
0-321-55804-9
eText ISBN-13
978-0-321-55804-6
Print ISBN-10
0-321-53135-3
Print ISBN-13
978-0-321-53135-3
« Back to My CourseSmart
Starting Out with Visual Basic 2008, Fourth Edition
by
Tony Gaddis; Kip Irvine
eTextbook $39.80
(180 day subscription)
Compare Online & Downloadable
Copyright, ii
Preface, xi
Chapter 1. Introduction t...
Chapter 2. Creating Appli...
Chapter 3. Variables and ...
Chapter 4. Making Decisio...
Chapter 5. Lists, Loops, ...
Chapter 6. Procedures and...
Chapter 7. Multiple Forms...
Chapter 8. Arrays, Timers...
Chapter 9. Files, Printin...
Chapter 10. Working with ...
Chapter 11. Developing We...
Chapter 12. Classes, Coll...
Appendix A. User Interfac...
Appendix B. Converting Ma...
Appendix C. Answers to Ch...
Appendix D. Glossary, 832
Index, 843
Table of Contents
Copyright, ii
Preface, xi
Chapter 1. Introduction to Programming and Visual Basic, 1
1.1. Computer Systems: Hardware and Software, 2
1.2. Programs and Programming Languages, 4
Tutorial 1-1: Running the
Wage Calculator
application, 8
Tutorial 1-2: Running an application that demonstrates event procedures, 9
1.3. More about Controls and Programming, 10
Tutorial 1-3: Running an application that demonstrates various controls, 11
1.4. The Programming Process, 17
1.5. Visual Studio and Visual Basic Express (the Visual Basic Environment), 21
Tutorial 1-4: Starting Visual Studio, 21
Tutorial 1-5: Opening the
Design
,
Solution Explorer
,
Dynamic Help
, and
Properties
windows in Visual Studio, 27
Tutorial 1-6: Getting familiar with Visual Studio, 32
Summary, 34
Key Terms, 34
Review Questions and Exercises, 35
Programming Challenges, 38
Chapter 2. Creating Applications with Visual Basic, 39
2.1. Focus on Problem Solving: Building the
Directions
Application, 39
Tutorial 2-1: Beginning the
Directions
application, 42
Tutorial 2-2: Adding a Label control to the
Directions
application, 44
Tutorial 2-3: Setting the Label’s TextAlign property, 46
Tutorial 2-4: Changing the Label’s font size and style, 47
Tutorial 2-5: Deleting a control, 48
Tutorial 2-6: Inserting a PictureBox control, 48
Tutorial 2-7: Saving and running the application, 50
Tutorial 2-8: Closing a Visual Basic project, 52
Tutorial 2-9: Opening an existing project, 55
Tutorial 2-10: Using the Object box,
Alphabetical
button, and
Categorized
button, 57
2.2. Focus on Problem Solving: Responding to Events, 57
Tutorial 2-11: Placing the lblDirections, btnDisplayDirections, and btnExit controls in the
Directions
application, 62
Tutorial 2-12: Writing event procedures for the
Directions
application, 66
Tutorial 2-13: Changing the text colors, 71
Tutorial 2-14: Setting the FormBorderStyle property and locking the controls in the
Directions
application, 73
2.3. Modifying the Text Property with Code, 74
Tutorial 2-15: Examining an application that displays messages, 74
2.4. The AutoSize, BorderStyle, and TextAlign Properties, 76
2.5. Clickable Images, 78
Tutorial 2-16: Writing Click event procedures for PictureBox controls, 78
2.6. Using Visual Studio Help, 80
Tutorial 2-17: Using
Dynamic Help
in Visual Studio, 83
2.7. Debugging Your Application, 87
Tutorial 2-18: Locating a compile error in Design mode, 87
Summary, 89
Key Terms, 90
Review Questions and Exercises, 90
Programming Challenges, 93
Chapter 3. Variables and Calculations, 97
3.1. Gathering Text Input, 97
Tutorial 3-1: Using a TextBox control, 98
Tutorial 3-2: Building the
Date String
application, 101
Tutorial 3-3: Using the Focus method, 105
Tutorial 3-4: Changing the tab order, 106
Tutorial 3-5: Setting access keys, accept, and cancel buttons, 109
3.2. Variables and Data Types, 111
Tutorial 3-6: Assigning text to a variable, 116
3.3. Performing Calculations, 121
3.4. Mixing Different Data Types, 129
Tutorial 3-7: Examining a
Simple Calculator
application, 138
3.5. Formatting Numbers and Dates, 141
Tutorial 3-8: Examining the
Format Demo
application, 144
3.6. Exception Handling, 146
Tutorial 3-9:
Salary Calculation
application with exception handling, 151
3.7. Group Boxes and the Load Event Procedure, 153
3.8. Focus on Program Design and Problem Solving: Building the
Room Charge Calculator
Application, 156
Tutorial 3-10: Beginning the
Room Charge Calculator
application, 160
Tutorial 3-11: Changing a label’s colors, 166
3.9. More about Debugging: Locating Logic Errors, 166
Tutorial 3-12: Single-stepping through an application’s code at runtime, 167
Summary, 173
Key Terms, 176
Review Questions and Exercises, 177
Programming Challenges, 183
Chapter 4. Making Decisions and Working with Strings, 189
4.1. The Decision Structure, 189
4.2. The If...Then Statement, 191
Tutorial 4-1: Examining an application that uses the If...Then statement, 194
4.3. The If...Then...Else Statement, 197
Tutorial 4-2: Completing an application that uses the If...Then...Else statement, 198
4.4. The If...Then...ElseIf Statement, 200
Tutorial 4-3: Completing an application that uses the If...Then...ElseIf statement, 201
Tutorial 4-4: Comparing an If...Then...ElseIf statement to a series of If...Then statements, 204
4.5. Nested If Statements, 208
Tutorial 4-5: Completing an application with a nested If statement, 208
4.6. Logical Operators, 210
4.7. Comparing, Testing, and Working with Strings, 216
Tutorial 4-6: Examining an application that performs string comparisons, 219
Tutorial 4-7: Completing a string searching application, 224
4.8. Focus on GUI Design: The Message Box, 227
4.9. The Select Case Statement, 231
Tutorial 4-8: Examining
Crazy Al’s Sales Commission Calculator
application, 235
4.10. Introduction to Input Validation, 238
4.11. Focus on GUI Design: Radio Buttons and Check Boxes, 240
Tutorial 4-9: Completing an application with radio buttons and check boxes, 242
4.12. Class-Level Variables, 244
4.13. Focus on Program Design and Problem Solving: Building the
Health Club Membership Fee Calculator
Application, 245
Tutorial 4-10: Building the
Health Club Membership Fee Calculator
application, 250
Summary, 255
Key Terms, 256
Review Questions and Exercises, 257
Programming Challenges, 262
Chapter 5. Lists, Loops, Validation, and More, 271
5.1. Input Boxes, 271
5.2. List Boxes, 274
Tutorial 5-1: Creating list boxes, 279
5.3. Introduction to Loops: The Do While Loop, 283
Tutorial 5-2: Completing an application that uses the Do While loop, 284
Tutorial 5-3: Modifying the
Do While Demo
application to use a posttest loop, 288
Tutorial 5-4: Using a loop to keep a running total, 289
Tutorial 5-5: Examining an application that uses a user-controlled loop, 293
5.4. The Do Until and For...Next Loops, 295
Tutorial 5-6: Examining an application that uses the Do Until loop, 296
Tutorial 5-7: Examining an application that uses the For...Next loop, 298
Tutorial 5-8: Completing an application that uses the For...Next loop, 300
5.5. Nested Loops, 304
5.6. Multicolumn List Boxes, Checked List Boxes, and Combo Boxes, 305
Tutorial 5-9: Creating combo boxes, 309
5.7. Input Validation, 311
Tutorial 5-10: Completing an application that demonstrates input validation, 312
Tutorial 5-11: An example of inconvenient data input correction, 316
Tutorial 5-12: Modifying the
Validation Demo
project to use the SelectAll method, 317
5.8. ToolTips, 319
Tutorial 5-13: Adding ToolTips to an application, 320
5.9. Focus on Program Design and Problem Solving: Building the
Vehicle Loan Calculator
Application, 321
Tutorial 5-14: Building the
Vehicle Loan Calculator
application, 330
Summary, 335
Key Terms, 336
Review Questions and Exercises, 336
Programming Challenges, 343
Chapter 6. Procedures and Functions, 351
6.1. Procedures, 352
Tutorial 6-1: Examining an application with a procedure, 352
Tutorial 6-2: Creating a procedure, 355
6.2. Passing Arguments to Procedures, 363
Tutorial 6-3: Examining an application that demonstrates passing an argument to a procedure, 364
Tutorial 6-4: Working with ByVal and ByRef, 367
6.3. Functions, 370
Tutorial 6-5: Examining the
GPA Calculator
application, 372
6.4. More about Debugging: Stepping Into, Over, and Out of Procedures and Functions, 378
Tutorial 6-6: Practicing the
Step Into
,
Step Over
, and
Step Out
commands, 379
6.5. Focus on Program Design and Problem Solving: Building the
Bagel and Coffee Price Calculator
Application, 381
Tutorial 6-7: Building the
Bagel House
application, 391
Summary, 395
Key Terms, 396
Review Questions and Exercises, 396
Programming Challenges, 400
Chapter 7. Multiple Forms, Standard Modules, and Menus, 407
7.1. Multiple Forms, 407
Tutorial 7-1: Completing an application that displays modal and modeless forms, 416
Tutorial 7-2: Completing an application with multiple forms, 422
7.2. Standard Modules, 428
Tutorial 7-3: Examining an application that uses a standard module, 431
7.3. Menus, 435
Tutorial 7-4: Building a menu, 443
7.4. Focus on Problem Solving: Building the
High Adventure Travel Agency Price Quote
Application, 448
Tutorial 7-5: Building the
High Adventure Travel Agency Price Quote
application, 457
Summary, 469
Key Terms, 470
Review Questions and Exercises, 470
Programming Challenges, 475
Chapter 8. Arrays, Timers, and More, 485
8.1. Arrays, 485
Tutorial 8-1: Completing an application that uses an array, 494
8.2. More about Array Processing, 497
Tutorial 8-2: Examining an application that uses parallel arrays, 501
8.3. Procedures and Functions That Work with Arrays, 508
Tutorial 8-3: Examining an application with functions and with arrays, 510
8.4. Multidimensional Arrays, 514
Tutorial 8-4: Completing an application that sums the rows of a two-dimensional array, 516
8.5. Focus on GUI Design: The Enabled Property, Timer Control, and Splash Screens, 521
Tutorial 8-5: The
Timer Demo
, 523
Tutorial 8-6: Creating a splash screen, 525
8.6. Focus on GUI Design: Anchoring and Docking Controls, 527
8.7. Random Numbers, 530
Tutorial 8-7: Examining the
CatchMe
application, 531
8.8. Focus on Problem Solving: Building the
Demetris Leadership Center
Application, 534
Tutorial 8-8: Building the
Demetris Leadership Center Sales Reporting
application, 537
Summary, 542
Key Terms, 543
Review Questions and Exercises, 544
Programming Challenges, 549
Chapter 9. Files, Printing, and Structures, 555
9.1. Using Files, 555
Tutorial 9-1: Completing an application that writes data to a file, 560
Tutorial 9-2: Completing an application that reads a file, 565
Tutorial 9-3: Examining an application that detects the end of a file, 570
9.2. The OpenFileDialog, SaveFileDialog, FontDialog, and ColorDialog Controls, 574
Tutorial 9-4: Creating a simple text editor application, 578
9.3. The PrintDocument Control, 587
Tutorial 9-5: Adding printing capabilities to the
Simple Text Editor
application, 588
9.4. Structures, 593
Tutorial 9-6: Examining an application with a structure, 596
9.5. Focus on Problem Solving: Modifying the
Demetris Leadership Center
Application, 598
Tutorial 9-7: Modifying the
Demetris Leadership Center Sales-Reporting
application, 599
Summary, 607
Key Terms, 608
Review Questions and Exercises, 608
Programming Challenges, 614
Chapter 10. Working with Databases, 619
10.1. Database Management Systems, 619
10.2. Database Concepts, 620
10.3. DataGridView Control, 624
Tutorial 10-1: Showing a database table in a DataGridView control, 625
Tutorial 10-2: Sorting and Updating the
SalesStaff
table, 632
10.4. Data-Bound Controls, 634
Tutorial 10-3: Binding a DataGridView to the
SalesStaff
table, 638
Tutorial 10-4: Binding individual controls to the
SalesStaff
table, 639
Tutorial 10-5: Displaying the
Members
table in a list box, 643
Tutorial 10-6: Inserting
Karate
member payments, 646
Tutorial 10-7: Adding a total to the
Karate
student payments, 649
10.5. Structured Query Language (SQL), 651
Tutorial 10-8: Filtering rows in the
SalesStaff
table, 659
10.6. Focus on Problem Solving:
Karate School Management
Application, 661
Tutorial 10-9: Creating the
Karate School Manager
startup form, 665
Tutorial 10-10: Adding the
Membership / List all
function to the
Karate School Manager
, 665
Tutorial 10-11: Adding the
Membership / Add new member
function to the
Karate School Manager
, 668
Tutorial 10-12: Adding the
Membership / Find member
function to the
Karate School Manager
, 670
Tutorial 10-13: Adding the
Payments / All members
function to the
Karate School Manager
, 672
Summary, 678
Key Terms, 679
Review Questions and Exercises, 680
Programming Challenges, 682
Chapter 11. Developing Web Applications, 687
11.1. Programming for the Web, 687
11.2. Creating ASP.NET Applications, 691
Tutorial 11-1: Creating the
Click
application, 695
11.3. Web Server Controls, 699
Tutorial 11-2:
Student Picnic
application, 701
11.4. Designing Web Forms, 708
Tutorial 11-3: Signing up for a
Kayak Tour
, 711
11.5. Applications with Multiple Web Pages, 714
Tutorial 11-4: Adding a description form to the
Kayak Tour
application, 716
11.6. Using Databases, 718
Tutorial 11-5: Displaying the
Karate Members
table in a GridView, 721
Tutorial 11-6: Updating the
Karate Members
table, 726
Summary, 733
Key Terms, 734
Review Questions and Exercises, 735
Programming Challenges, 738
Chapter 12. Classes, Collections, and Scrollable Controls, 741
12.1. Classes and Objects, 741
12.2. Creating a Class, 744
Tutorial 12-1: Creating the
Student Data
application, 757
12.3. Collections, 762
12.4. Focus on Problem Solving: Creating the
Student Collection
Application, 768
Tutorial 12-2: Completing the
Student Collection
application, 769
12.5. The Object Browser, 774
Tutorial 12-3: Using the Object Browser, 774
12.6. Focus on GUI Design: Scroll Bars and Track Bars, 776
Tutorial 12-4: Working with scrollable controls, 778
12.7. Introduction to Inheritance, 780
Tutorial 12-5: Completing an application that uses inheritance, 787
Summary, 794
Key Terms, 796
Review Questions and Exercises, 796
Programming Challenges, 804
Appendix A. User Interface Design Guidelines, 809
Appendix B. Converting Mathematical Expressions to Programming Statements, 812
Appendix C. Answers to Checkpoints, 814
Appendix D. Glossary, 832
Index, 843
Please use the Print button in the CourseSmart Reader header.