did-you-know? rent-now

Amazon no longer offers textbook rentals. We do!

did-you-know? rent-now

Amazon no longer offers textbook rentals. We do!

We're the #1 textbook rental company. Let us show you why.

9780130293633

Visual Basic. NET How to Program

by ; ;
  • ISBN13:

    9780130293633

  • ISBN10:

    0130293636

  • Edition: 2nd
  • Format: Paperback
  • Copyright: 2002-01-01
  • Publisher: PRENTICE HALL
  • View Upgraded Edition
  • Purchase Benefits
  • Free Shipping Icon Free Shipping On Orders Over $35!
    Your order must be $35 or more to qualify for free economy shipping. Bulk sales, PO's, Marketplace items, eBooks and apparel do not qualify for this offer.
  • eCampus.com Logo Get Rewarded for Ordering Your Textbooks! Enroll Now
List Price: $106.47

Summary

For introductory and intermediate courses on Visual Basic programming offered in departments of Computer Science, CIS, MIS, IT, Business, Engineering, and Continuing Education. Teach Visual Basic .NET programming from the ground up! The introduction of Microsoft's .NET Framework marks the beginning of major revisions to all of Microsoft's programming languages. This book provides a comprehensive introduction to the latest version of Visual BasicVisual Basic .NETwhich features extensive updates and increased functionality. Visual Basic .NET How to Program covers introductory programming techniques as well as more advanced topics, featuring enhanced treatment of developing Web-based applications.

Table of Contents

Illustrationsp. xxviii
Prefacep. xxxvii
Introduction to Computers, Internet and Visual Basic .NETp. 1
Introductionp. 2
What Is a Computer?p. 3
Computer Organizationp. 4
Evolution of Operating Systemsp. 5
Personal Computing, Distributed Computing and Client/Server Computingp. 5
Machine Languages, Assembly Languages and High-Level Languagesp. 6
Visual Basic .NETp. 7
C, C++, Java and C#p. 9
Other High-Level Languagesp. 10
Structured Programmingp. 10
Key Software Trend: Object Technologyp. 11
Hardware Trendsp. 13
History of the Internet and World Wide Webp. 14
World Wide Web Consortium (W3C)p. 15
Extensible Markup Language (XML)p. 16
Introduction to Microsoft .NETp. 17
.NET Framework and the Common Language Runtimep. 18
Tour of the Bookp. 20
Internet and World Wide Web Resourcesp. 29
Introduction to the Visual Studio .NET IDEp. 33
Introductionp. 34
Overview of the Visual Studio .NET IDEp. 34
Menu Bar and Toolbarp. 37
Visual Studio .NET IDE Windowsp. 39
Using Helpp. 44
Simple Program: Displaying Text and an Imagep. 45
Internet and World Wide Web Resourcesp. 55
Introduction to Visual Basic Programmingp. 61
Introductionp. 62
Simple Program: Printing a Line of Textp. 62
Another Simple Program: Adding Integersp. 70
Memory Conceptsp. 73
Arithmeticp. 74
Decision Making: Equality and Relational Operatorsp. 78
Using a Dialog to Display a Messagep. 82
Internet and World Wide Web Resourcesp. 88
Control Structuresp. 96
Introductionp. 97
Algorithmsp. 97
Pseudocodep. 98
Control Structuresp. 98
If/Then Selection Structurep. 102
If/Then/Else Selection Structurep. 104
While Repetition Structurep. 106
Do While/Loop Repetition Structurep. 108
Do Until/Loop Repetition Structurep. 109
Assignment Operatorsp. 110
Formulating Algorithms: Case Study 1 (Counter-Controlled Repetition)p. 112
Formulating Algorithms with Top-Down, Stepwise Refinement: Case Study 2 (Sentinel-Controlled Repetition)p. 114
Formulating Algorithms with Top-Down, Stepwise Refinement: Case Study 3 (Nested Control Structures)p. 119
Formulating Algorithms with Top-Down, Stepwise Refinement: Case Study 4 (Nested Repetition Structures)p. 123
Introduction to Windows Application Programmingp. 127
Control Structures: Part 2p. 144
Introductionp. 145
Essentials of Counter-Controlled Repetitionp. 145
For/Next Repetition Structurep. 146
Examples Using the For/Next Structurep. 149
Select Case Multiple-Selection Structurep. 155
Do/Loop While Repetition Structurep. 159
Do/Loop Until Repetition Structurep. 160
Using the Exit Keyword in a Repetition Structurep. 162
Logical Operatorsp. 164
Structured Programming Summaryp. 170
Proceduresp. 182
Introductionp. 183
Modules, Classes and Proceduresp. 183
Sub Proceduresp. 185
Function Proceduresp. 188
Methodsp. 190
Argument Promotionp. 195
Option Strict and Data-Type Conversionsp. 196
Value Types and Reference Typesp. 198
Passing Arguments: Pass-by-Value vs. Pass-by-Referencep. 200
Duration of Identifiersp. 202
Scope Rulesp. 203
Random-Number Generationp. 206
Example: Game of Chancep. 213
Recursionp. 218
Example Using Recursion: Fibonacci Seriesp. 221
Recursion vs. Iterationp. 225
Procedure Overloading and Optional Argumentsp. 226
Modulesp. 231
Arraysp. 245
Introductionp. 246
Arraysp. 246
Declaring and Allocating Arraysp. 248
Examples Using Arraysp. 249
Passing Arrays to Proceduresp. 260
Passing Arrays: ByVal vs. ByRefp. 264
Sorting Arraysp. 268
Searching Arrays: Linear Search and Binary Searchp. 272
Multidimensional Rectangular and Jagged Arraysp. 279
Variable-Length Parameter Listsp. 287
For Each/Next Repetition Structurep. 288
Object-Based Programmingp. 296
Introductionp. 297
Implementing a Time Abstract Data Type with a Classp. 298
Class Scopep. 306
Controlling Access to Membersp. 306
Initializing Class Objects: Constructorsp. 308
Using Overloaded Constructorsp. 308
Propertiesp. 314
Composition: Objects as Instance Variables of Other Classesp. 321
Using the Me Referencep. 324
Garbage Collectionp. 326
Shared Class Membersp. 327
Const and ReadOnly Membersp. 331
Data Abstraction and Information Hidingp. 334
Software Reusabilityp. 335
Namespaces and Assembliesp. 336
Class View and Object Browserp. 340
Object-Oriented Programming: Inheritancep. 349
Introductionp. 350
Base Classes and Derived Classesp. 351
Protected and Friend Membersp. 354
Relationship between Base Classes and Derived Classesp. 354
Case Study: Three-Level Inheritance Hierarchyp. 372
Constructors and Finalizers in Derived Classesp. 376
Software Engineering with Inheritancep. 382
Object-Oriented Programming: Polymorphismp. 388
Introductionp. 389
Derived-Class-Object to Base-Class-Object Conversionp. 389
Type Fields and Select Case Statementsp. 396
Polymorphism Examplesp. 397
Abstract Classes and Methodsp. 398
Case Study: Inheriting Interface and Implementationp. 400
Not Inheritable Classes and NotOverridable Methodsp. 408
Case Study: Payroll System Using Polymorphismp. 409
Case Study: Creating and Using Interfacesp. 419
Delegatesp. 432
Exception Handlingp. 441
Introductionp. 442
Exception Handling Overviewp. 443
Example: DivideByZeroExceptionp. 446
.NET Exception Hierarchyp. 450
Finally Blockp. 452
Exception Propertiesp. 459
Programmer-Defined Exception Classesp. 464
Handling Overflowsp. 468
Graphical User Interface Conceptsp. 475
Introductionp. 476
Windows Formsp. 478
Event-Handling Modelp. 480
Control Properties and Layoutp. 487
Labels, TextBoxes and Buttonsp. 491
GroupBoxes and Panelsp. 494
CheckBoxes and RadioButtonsp. 497
PictureBoxesp. 508
Mouse-Event Handlingp. 510
Keyboard-Event Handlingp. 513
Graphical User Interface Concepts: Part 2p. 523
Introductionp. 524
Menusp. 524
LinkLabelsp. 534
ListBoxes and CheckedListBoxesp. 538
ComboBoxesp. 545
TreeViewsp. 550
ListViewsp. 555
Tab Controlp. 562
Multiple-Document-Interface (MDI) Windowsp. 567
Visual Inheritancep. 576
User-Defined Controlsp. 580
Multithreadingp. 592
Introductionp. 593
Thread States: Life Cycle of a Threadp. 595
Thread Priorities and Thread Schedulingp. 596
Thread Synchronization and Class Monitorp. 601
Producer/Consumer Relationship without Thread Synchronizationp. 603
Producer/Consumer Relationship with Thread Synchronizationp. 609
Producer/Consumer Relationship: Circular Bufferp. 618
Strings, Characters and Regular Expressionsp. 633
Introductionp. 634
Fundamentals of Characters and Stringsp. 634
String Constructorsp. 635
String Length and Chars Properties, and CopyTo Methodp. 637
Comparing Stringsp. 639
String Method GetHashCodep. 643
Locating Characters and Substrings in Stringsp. 644
Extracting Substrings from Stringsp. 647
Concatenating Stringsp. 648
Miscellaneous String Methodsp. 649
Class StringBuilderp. 651
StringBuilder Indexer, Length and Capacity Properties, and EnsureCapacity Methodp. 652
StringBuilder Append and AppendFormat Methodsp. 654
StringBuilder Insert, Remove and Replace Methodsp. 657
Char Methodsp. 660
Card Shuffling and Dealing Simulationp. 663
Regular Expressions and Class Regexp. 667
Graphics and Multimediap. 683
Introductionp. 684
Graphics Contexts and Graphics Objectsp. 686
Color Controlp. 687
Font Controlp. 694
Drawing Lines, Rectangles and Ovalsp. 699
Drawing Arcsp. 702
Drawing Polygons and Polylinesp. 705
Advanced Graphics Capabilitiesp. 709
Introduction to Multimediap. 714
Loading, Displaying and Scaling Imagesp. 714
Animating a Series of Imagesp. 716
Windows Media Playerp. 729
Microsoft Agentp. 731
Files and Streamsp. 752
Introductionp. 753
Data Hierarchyp. 753
Files and Streamsp. 755
Classes File and Directoryp. 757
Creating a Sequential-Access Filep. 767
Reading Data from a Sequential-Access Filep. 778
Random-Access Filesp. 789
Creating a Random-Access Filep. 794
Writing Data Randomly to a Random-Access Filep. 797
Reading Data Sequentially from a Random-Access Filep. 802
Case Study: A Transaction-Processing Programp. 807
Extensible Markup Language (XML)p. 833
Introductionp. 834
XML Documentsp. 834
XML Namespacesp. 839
Document Object Model (DOM)p. 842
Document Type Definitions (DTDs), Schemas and Validationp. 860
Extensible Stylesheet Language and XslTransformp. 870
Microsoft BizTalkp. 877
Internet and World Wide Web Resourcesp. 880
Database, SQL and ADO .NETp. 887
Introductionp. 888
Relational Database Modelp. 889
Relational Database Overview: Books Databasep. 890
Structured Query Language (SQL)p. 896
ADO .NET Object Modelp. 912
Programming with ADO .NET: Extracting Information from a DBMSp. 913
Programming with ADO .NET: Modifying a DBMSp. 923
Reading and Writing XML Filesp. 932
ASP .NET, Web Forms and Web Controlsp. 941
Introductionp. 942
Simple HTTP Transactionp. 943
System Architecturep. 945
Creating and Running a Simple Web-Form Examplep. 946
Web Controlsp. 958
Session Trackingp. 979
Case Study: Online Guest bookp. 998
Case Study: Connecting to a Database in ASP .NETp. 1004
Tracingp. 1019
Internet and World Wide Web Resourcesp. 1021
ASP .NET and Web Servicesp. 1030
Introductionp. 1031
Web Servicesp. 1032
Simple Object Access Protocol (SOAP) and Web Servicesp. 1036
Publishing and Consuming Web Servicesp. 1037
Session Tracking in Web Servicesp. 1053
Using Web Forms and Web Servicesp. 1066
Case Study: Temperature Information Applicationp. 1072
User-Defined Types in Web Servicesp. 1081
Internet and World Wide Web Resourcesp. 1091
Networking: Streams-Based Sockets and Datagramsp. 1096
Introductionp. 1097
Establishing a Simple Server (Using Stream Sockets)p. 1098
Establishing a Simple Client (Using Stream Sockets)p. 1100
Client/Server Interaction via Stream-Socket Connectionsp. 1101
Connectionless Client/Server Interaction via Datagramsp. 1110
Client/Server Tic-Tac-Toe Using a Multithreaded Serverp. 1116
Data Structures and Collectionsp. 1136
Introductionp. 1137
Self-Referential Classesp. 1137
Linked Listsp. 1139
Stacksp. 1152
Queuesp. 1156
Treesp. 1160
Collection Classesp. 1175
Accessibilityp. 1203
Introductionp. 1204
Regulations and Resourcesp. 1205
Web Accessibility Initiativep. 1207
Providing Alternatives for Imagesp. 1208
Maximizing Readability by Focusing on Structurep. 1209
Accessibility in Visual Studio .NETp. 1209
Accessibility in Visual Basicp. 1215
Accessibility in XHTML Tablesp. 1221
Accessibility in XHTML Framesp. 1225
Accessibility in XMLp. 1226
Using Voice Synthesis and Recognition with VoiceXMLp. 1226
CallXMLp. 1233
JAWS for Windowsp. 1240
Other Accessibility Toolsp. 1240
Accessibility in Microsoft Windows 2000p. 1241
Internet and World Wide Web Resourcesp. 1255
Operator Precedence Chartp. 1264
Number Systems (on CD)p. 1266
Introductionp. 1267
Abbreviating Binary Numbers as Octal Numbers and Hexadecimal Numbersp. 1270
Converting Octal Numbers and Hexadecimal Numbers to Binary Numbersp. 1272
Converting from Binary, Octal or Hexadecimal to Decimalp. 1272
Converting from Decimal to Binary, Octal or Hexadecimalp. 1273
Negative Binary Numbers: Two's Complement Notationp. 1274
Career Opportunities (on CD)p. 1280
Introductionp. 1281
Resources for the Job Seekerp. 1282
Online Opportunities for Employersp. 1283
Recruiting Servicesp. 1288
Career Sitesp. 1289
Internet and World Wide Web Resourcesp. 1294
Visual Studio .NET Debuggerp. 1302
Introductionp. 1303
Breakpointsp. 1304
Examining Datap. 1306
Program Controlp. 1308
Additional Procedure Debugging Capabilitiesp. 1312
Additional Class Debugging Capabilitiesp. 1314
ASCII Character Setp. 1319
Unicode (on CD)p. 1320
Introductionp. 1321
Unicode Transformation Formatsp. 1322
Characters and Glyphsp. 1323
Advantages/Disadvantages of Unicodep. 1324
Unicode Consortium's Web Sitep. 1324
Using Unicodep. 1325
Character Rangesp. 1327
COM Integration (on CD)p. 1332
Introductionp. 1332
ActiveX Integrationp. 1333
DLL Integrationp. 1337
Internet and World Wide Web Resourcesp. 1341
Introduction to HyperText Markup Language 4: Part 1 (on CD)p. 1344
Introductionp. 1345
Markup Languagesp. 1345
Editing HTMLp. 1346
Common Elementsp. 1346
Headersp. 1349
Linkingp. 1350
Imagesp. 1352
Special Characters and More Line Breaksp. 1356
Unordered Listsp. 1358
Nested and Ordered Listsp. 1359
Internet and World Wide Web Resourcesp. 1362
Introduction to HyperText Markup Language 4: Part 2 (on CD)p. 1367
Introductionp. 1368
Basic HTML Tablesp. 1368
Intermediate HTML Tables and Formattingp. 1370
Basic HTML Formsp. 1373
More Complex HTML Formsp. 1376
Internal Linkingp. 1383
Creating and Using Image Mapsp. 1386
[left angle bracket]meta[right angle bracket] Tagsp. 1388
frameset Elementp. 1390
Nested framesetsp. 1392
Internet and World Wide Web Resourcesp. 1394
Introduction to XHTML (on CD)p. 1400
Introductionp. 1401
Editing XHTMLp. 1401
First XHTML Examplep. 1402
W3C XHTML Validation Servicep. 1405
Headersp. 1406
Linkingp. 1408
Imagesp. 1411
Special Characters and More Line Breaksp. 1415
Unordered Listsp. 1417
Nested and Ordered Listsp. 1418
Internet and World Wide Web Resourcesp. 1421
Introduction to XHTML: Part 2 (on CD)p. 1426
Introductionp. 1427
Basic XHTML Tablesp. 1427
Intermediate XHTML Tables and Formattingp. 1430
Basic XHTML Formsp. 1432
More Complex XHTML Formsp. 1435
Internal Linkingp. 1443
Creating and Using Image Mapsp. 1446
meta Elementsp. 1448
frameset Elementp. 1449
Nested framesetsp. 1454
Internet and World Wide Web Resourcesp. 1456
HTML/XHTML Special Charactersp. 1462
HTML/XHTML Colorsp. 1463
Crystal Reports for Visual Studio .NETp. 1466
Introductionp. 1466
Crystal Reports Web Site Resourcesp. 1466
Crystal Reports and Visual Studio .NETp. 1467
Bibliographyp. 1471
Indexp. 1475
Table of Contents provided by Syndetics. All Rights Reserved.

Supplemental Materials

What is included with this book?

The New copy of this book will include any supplemental materials advertised. Please check the title of the book to determine if it should include any access cards, study guides, lab manuals, CDs, etc.

The Used, Rental and eBook copies of this book are not guaranteed to include any supplemental materials. Typically, only the book itself is included. This is true even if the title states it includes any access cards, study guides, lab manuals, CDs, etc.

Excerpts

Live in fragments no longer. Only connect. Edward Morgan Forster We wove a web in childhood, A web of sunny air. Charlotte Bronte Welcome to Visual Basic .NET and the exciting world of Windows, Internet and World-Wide-Web programming with Visual Studio and the .NET platform! This book is the first in our new.NET How to Programseries, which presents various leading-edge computing technologies in the context of the .NET platform. Visual Basic .NET provides the features that are most important to programmers, such as object-oriented programming, strings, graphics, graphical-user-interface (GUI) components, exception handling, multithreading, multimedia (audio, images, animation and video), file processing, prepackaged data structures, database processing, Internet and World-Wide-Web-based client/server networking and distributed computing. The language is appropriate for implementing Internet-based and World-Wide-Web-based applications that seamlessly integrate with PC-based applications. Visual Basic .NET is the next phase in the evolution of Visual Basic, the world's most popular programming language. The .NET platform offers powerful capabilities for software development and deployment, including independence from a specific language or platform. Rather than requiring developers to learn a new programming language, programmers can contribute to the same software project, but write code using any (or several) of the .NET languages (such as Visual Basic .NET, Visual C++ .NET, C# and others) with which they are most competent. In addition to providing language independence, .NET extends program portability by enabling .NET applications to reside on, and communicate across, multiple platforms--thus facilitating the delivery of Web services over the Internet. .NET enables Web-based applications to be distributed to consumer-electronic devices, such as cell phones and personal digital assistants, as well as to desktop computers. The capabilities that Microsoft has incorporated into the .NET platform create a new software-development paradigm that will increase programmer productivity and decrease development time. New Features inVisual Basic.NET How to Program: Second Edition This edition contains many new features and enhancements, including: Full-Color Presentation.This book is now in full color. In the book's previous edition, the programs were displayed in black and the screen captures appeared in a second color. Full color enables readers to see sample outputs as they would appear on a color monitor. Also, we now syntax color the Visual Basic .NET code, similar to the way Visual Studio .NET colors the code in its editor window. Our syntax-coloring conventions are as follows: - comments appear in green - keywords appear in dark blue - literal values appear in light blue - text, class, method and variable names appear in black - errors and ASP delimiters appear in red "Code Washing."This is our term for the process we use to format the programs in the book so that they have a carefully commented, open layout. The code appears in full color and grouped into small, well-documented pieces. This greatly improves code readability--an especially important goal for us, considering that this book contains about 21,000 lines of code. Web Services and ASP.NET.Microsoft's .NET strategy embraces the Internet and Web as integral to the software development and deployment processes. Web services, a key technology in this strategy, enables information sharing, commerce and other interactions using standard Internet protocols and technologies, such as Hypertext Transfer Protocol (HTTP), Simple Object Access Protocol (SOAP) and Extensible Markup Language (XML). Web services enable programmers to package application functionality in a form that turns the Web into

Rewards Program