Preface |
|
xvii | |
|
Introduction to Visual Basic .NET: Background and Perspective |
|
|
1 | (24) |
|
Understanding Basic Computer Terminology and Component Architecture |
|
|
2 | (2) |
|
Exploring the History of Programming Languages |
|
|
4 | (4) |
|
|
5 | (1) |
|
|
6 | (1) |
|
|
7 | (1) |
|
Learning a Programming Language |
|
|
8 | (1) |
|
Solving Problems and Developing Algorithms |
|
|
9 | (4) |
|
Identifying Basic Object-Oriented Programming Concepts |
|
|
13 | (3) |
|
Examining the Benefits of the Object-Oriented Approach |
|
|
16 | (2) |
|
|
18 | (2) |
|
|
20 | (5) |
|
The Visual Studio .NET Development Environment |
|
|
25 | (58) |
|
Exploring the Visual Studio .NET Development Environment |
|
|
26 | (6) |
|
Getting Started with VB .NET |
|
|
27 | (1) |
|
Exploring the Microsoft Development Environment |
|
|
28 | (3) |
|
Understanding the Start Page |
|
|
31 | (1) |
|
Creating a Project Using Visual Basic .NET |
|
|
32 | (11) |
|
Understanding How VB .NET Organizes Your Programs |
|
|
36 | (1) |
|
|
36 | (3) |
|
|
39 | (2) |
|
Setting the Startup Object |
|
|
41 | (2) |
|
Compiling and Executing a Visual Basic .NET Program |
|
|
43 | (2) |
|
Using the Visual Form Designer |
|
|
45 | (16) |
|
Creating a Windows Application |
|
|
46 | (2) |
|
Customizing the Appearance of a Form |
|
|
48 | (3) |
|
Adding Components to a Form |
|
|
51 | (10) |
|
Exploring the Debugging Tool |
|
|
61 | (3) |
|
Getting Started with the Debugger |
|
|
62 | (1) |
|
|
62 | (2) |
|
Exploring the Help Facility |
|
|
64 | (14) |
|
|
65 | (12) |
|
Exploring Context-Sensitive Help |
|
|
77 | (1) |
|
|
78 | (1) |
|
|
79 | (1) |
|
|
80 | (3) |
|
Introducing the Microsoft .NET Framework and Visual Basic .NET |
|
|
83 | (34) |
|
Exploring the Microsoft .NET Framework |
|
|
84 | (4) |
|
The Microsoft .NET Compilers |
|
|
85 | (1) |
|
The Common Language Runtime |
|
|
85 | (1) |
|
The Framework Class Library |
|
|
86 | (2) |
|
Writing a Visual Basic .NET Module Definition |
|
|
88 | (2) |
|
Defining Visual Basic .NET Variables and Data Types |
|
|
90 | (11) |
|
Understanding VB .NET Data Types |
|
|
90 | (2) |
|
Declaring and Populating Variables |
|
|
92 | (2) |
|
|
94 | (1) |
|
|
94 | (3) |
|
Using Reference Variables |
|
|
97 | (4) |
|
Writing Basic Computational Statements |
|
|
101 | (7) |
|
Using the Arithmetic Operators |
|
|
101 | (4) |
|
Invoking Methods in the Math Class |
|
|
105 | (3) |
|
Reading Input from the Keyboard |
|
|
108 | (1) |
|
Programming Example Temperature Converter |
|
|
109 | (1) |
|
|
110 | (3) |
|
|
113 | (1) |
|
|
114 | (3) |
|
Control Structures: Selection |
|
|
117 | (24) |
|
Writing and Interpreting Logical Expressions |
|
|
118 | (5) |
|
Using the VB .NET Relational Operators |
|
|
118 | (1) |
|
Using the VB .NET Logical Operators |
|
|
119 | (4) |
|
Writing One-Way Selection Statements |
|
|
123 | (3) |
|
Writing Two-Way Selection Statements |
|
|
126 | (5) |
|
Writing Multi-Way Selection Statements |
|
|
131 | (3) |
|
Programming Example: Payroll Calculation |
|
|
134 | (3) |
|
|
137 | (1) |
|
|
138 | (1) |
|
|
139 | (2) |
|
Control Structures: Iteration |
|
|
141 | (32) |
|
Exploring the Iteration Structure |
|
|
142 | (7) |
|
|
145 | (2) |
|
|
147 | (2) |
|
Implementing Iteration Using the Do While and Do Until Statements |
|
|
149 | (7) |
|
Writing Loops Using Do While |
|
|
149 | (5) |
|
Writing Loops Using Do Until |
|
|
154 | (2) |
|
Implementing Iteration Using the For Next Statement |
|
|
156 | (5) |
|
Creating Nested Structures |
|
|
161 | (4) |
|
Programming Example: Loan Amortization Computation |
|
|
165 | (3) |
|
|
168 | (1) |
|
|
169 | (2) |
|
|
171 | (2) |
|
Using VB .NET Supplied Classes |
|
|
173 | (42) |
|
Introducing the Framework Class Library |
|
|
174 | (1) |
|
Invoking Methods in the String Class |
|
|
175 | (11) |
|
Using the Length Property |
|
|
178 | (1) |
|
|
179 | (1) |
|
|
180 | (1) |
|
|
180 | (1) |
|
Using the Substring Method |
|
|
181 | (1) |
|
|
182 | (1) |
|
|
183 | (1) |
|
Using the Starts With and Ends With Methods |
|
|
184 | (1) |
|
Using the ToUpper, ToLower, IndexOf, and ToString Methods |
|
|
185 | (1) |
|
|
186 | (5) |
|
Formatting Numeric Output |
|
|
191 | (3) |
|
|
194 | (6) |
|
|
197 | (2) |
|
Performing Arithmetic with Dates |
|
|
199 | (1) |
|
Reading and Writing Sequential Files |
|
|
200 | (5) |
|
Programming Example: Employee Report |
|
|
205 | (3) |
|
|
208 | (2) |
|
|
210 | (2) |
|
|
212 | (3) |
|
|
215 | (34) |
|
Defining One-Dimensional Arrays |
|
|
216 | (8) |
|
Using a Loop to Iterate an Array |
|
|
221 | (1) |
|
|
222 | (2) |
|
|
224 | (4) |
|
Declaring Multi-Dimensional Arrays |
|
|
228 | (5) |
|
|
233 | (1) |
|
Using the ArrayList Class |
|
|
234 | (6) |
|
Programming Example: Employee Payroll |
|
|
240 | (5) |
|
|
245 | (1) |
|
|
246 | (2) |
|
|
248 | (1) |
|
Writing Graphical User Interfaces |
|
|
249 | (54) |
|
Introducing the GUI Classes in VB .NET |
|
|
250 | (3) |
|
Understanding the Code Generated by the Windows Form Designer |
|
|
253 | (5) |
|
Exploring the FormDemo Program |
|
|
253 | (5) |
|
Exploring GUI Design Principles |
|
|
258 | (2) |
|
Creating a Consistent Look and Feel |
|
|
258 | (1) |
|
Ensuring Ease of Use and Minimizing Data-Entry Errors |
|
|
259 | (1) |
|
Providing Feedback to the User |
|
|
259 | (1) |
|
|
259 | (1) |
|
Reviewing Forms, Buttons, and Labels |
|
|
260 | (3) |
|
|
263 | (3) |
|
Working with Additional GUI Controls |
|
|
266 | (19) |
|
Using Text Boxes and Combo Boxes |
|
|
266 | (9) |
|
Using Check Boxes and Radio Buttons |
|
|
275 | (5) |
|
Using List Boxes and Checked List Boxes |
|
|
280 | (5) |
|
Programming Example: ABC Computers |
|
|
285 | (8) |
|
|
293 | (1) |
|
|
294 | (4) |
|
|
298 | (5) |
|
|
303 | (30) |
|
Exploring the Client-Server Model |
|
|
304 | (5) |
|
Reviewing the Syntax of Procedures |
|
|
309 | (6) |
|
|
309 | (3) |
|
Using Function Procedures |
|
|
312 | (3) |
|
Writing User-Defined Procedures |
|
|
315 | (9) |
|
Writing Private Procedures |
|
|
315 | (4) |
|
Writing Public Procedures |
|
|
319 | (3) |
|
Using Optional Parameters |
|
|
322 | (2) |
|
Designing and Writing Overloaded Procedures |
|
|
324 | (3) |
|
Programming Example: Electricity Billing |
|
|
327 | (3) |
|
|
330 | (1) |
|
|
331 | (1) |
|
|
332 | (1) |
|
Writing Class Definitions |
|
|
333 | (42) |
|
Examining the Three-Tier Design Model |
|
|
334 | (1) |
|
Writing a Class Definition |
|
|
335 | (15) |
|
|
335 | (1) |
|
|
336 | (1) |
|
|
337 | (1) |
|
|
338 | (2) |
|
|
340 | (4) |
|
Writing a Parameterized Constructor |
|
|
344 | (4) |
|
Creating Multiple Instances |
|
|
348 | (2) |
|
Designing and Writing Overloaded Constructors |
|
|
350 | (6) |
|
Creating Polymorphic Methods |
|
|
356 | (5) |
|
|
361 | (4) |
|
Creating Shared Attributes and Methods |
|
|
365 | (4) |
|
Programming Example: Electricity Billing |
|
|
369 | (3) |
|
|
372 | (2) |
|
|
374 | (1) |
|
|
374 | (1) |
|
Implementing Inheritance and Association |
|
|
375 | (36) |
|
|
376 | (3) |
|
Writing a Superclass Definition |
|
|
377 | (1) |
|
Instantiating Superclasses |
|
|
378 | (1) |
|
|
379 | (9) |
|
Instantiating an Inheritance Hierarchy |
|
|
381 | (1) |
|
Understanding Private versus Protected Access |
|
|
382 | (3) |
|
|
385 | (3) |
|
Writing Abstract Classes and Methods |
|
|
388 | (2) |
|
|
390 | (3) |
|
Creating Association Links |
|
|
393 | (9) |
|
Implementing One-to-One Association |
|
|
394 | (4) |
|
Implementing One-to-Many Associations |
|
|
398 | (4) |
|
Programming Example: Student Enrolls In Course |
|
|
402 | (5) |
|
|
407 | (2) |
|
|
409 | (1) |
|
|
409 | (2) |
|
Advanced Topics: Exception Handling |
|
|
411 | (32) |
|
Examining the VB .NET Exception-Handling Model |
|
|
412 | (5) |
|
|
413 | (1) |
|
Exception-Handling Syntax |
|
|
414 | (3) |
|
Exploring the Supplied Exception Classes |
|
|
417 | (4) |
|
Writing User-Defined Exception Classes |
|
|
421 | (1) |
|
Adding Data Validation Code to Methods |
|
|
421 | (6) |
|
Exploring the Debugging Tool |
|
|
427 | (6) |
|
|
427 | (3) |
|
|
430 | (1) |
|
|
431 | (2) |
|
Programming Example: Data Validation with User-Defined Exception Classes |
|
|
433 | (6) |
|
|
439 | (2) |
|
|
441 | (1) |
|
|
441 | (2) |
|
Advanced GUI and Graphics |
|
|
443 | (78) |
|
Working with Additional GUI Controls |
|
|
444 | (25) |
|
Using Group Boxes and Panels |
|
|
446 | (4) |
|
Using Tree Nodes and Tree Views |
|
|
450 | (8) |
|
Using Tab Controls and Tab Pages |
|
|
458 | (5) |
|
Using Main Menus and Menu Items |
|
|
463 | (6) |
|
Drawing Lines, Rectangles, and Ovals |
|
|
469 | (8) |
|
Developing GUI Classes that Interact with a PD Class |
|
|
477 | (10) |
|
|
478 | (4) |
|
|
482 | (5) |
|
Creating Applications with Multiple Forms |
|
|
487 | (3) |
|
|
490 | (3) |
|
Creating an Integrated System That Simulates Interaction with a Database |
|
|
493 | (6) |
|
Modifying the Main Menu Form |
|
|
493 | (1) |
|
Modifying the Add Customer Form |
|
|
494 | (1) |
|
Modifying the Find Customer Form |
|
|
495 | (4) |
|
Programming Example: Interacting with Multiple PD Classes |
|
|
499 | (13) |
|
|
512 | (2) |
|
|
514 | (1) |
|
|
515 | (6) |
|
Advanced Topics: DBMS, SQL, and ASP.NET |
|
|
521 | (62) |
|
Exploring the Relational Database Model |
|
|
522 | (6) |
|
Understanding Tables, Rows, Columns, and Primary and Foreign Keys |
|
|
522 | (3) |
|
Mapping PD Attributes to Database Tables |
|
|
525 | (3) |
|
Constructing Queries Using SQL |
|
|
528 | (4) |
|
Extracting Records from a Database |
|
|
529 | (1) |
|
Inserting Records into a Database |
|
|
530 | (1) |
|
Updating Records in a Database |
|
|
531 | (1) |
|
Deleting Records from a Database |
|
|
532 | (1) |
|
WritingVB .NET Programs that Interact with a Relational Database |
|
|
532 | (17) |
|
Understanding the Examples in this Section |
|
|
535 | (1) |
|
Making the StudentDA Class Work with an Access Database |
|
|
536 | (7) |
|
Recognizing the Benefits of the Three-Tier Design |
|
|
543 | (6) |
|
Programming Example: Updating and Deleting Records in a Relational Database |
|
|
549 | (5) |
|
|
554 | (16) |
|
|
554 | (3) |
|
Creating ASP.NET Projects |
|
|
557 | (13) |
|
Programming Example: Electricity Billing |
|
|
570 | (5) |
|
|
575 | (2) |
|
|
577 | (2) |
|
|
579 | (4) |
|
Advanced Topics: Introducing Data Structures and Recursion |
|
|
583 | (56) |
|
Introducing Data Structures |
|
|
584 | (25) |
|
|
586 | (11) |
|
|
597 | (3) |
|
Exploring the FCL Stack Class |
|
|
600 | (2) |
|
|
602 | (7) |
|
Programming Example: Reservation Application |
|
|
609 | (4) |
|
|
613 | (4) |
|
Writing Recursive Methods |
|
|
617 | (14) |
|
|
617 | (4) |
|
Displaying a Directory Tree |
|
|
621 | (4) |
|
|
625 | (6) |
|
Programming Example: Towers of Hanoi |
|
|
631 | (4) |
|
|
635 | (2) |
|
|
637 | (1) |
|
|
638 | (1) |
Appendix A Setting Up an IIS Server |
|
639 | (6) |
Index |
|
645 | |