Programming in Visual Basic.NET 2005 Edition w/ Std CD / Edition 6

Other Format (Print)
Buy Used
Buy Used from
(Save 33%)
Item is in good condition but packaging may have signs of shelf wear/aging or torn packaging.
Condition: Used – Good details
Used and New from Other Sellers
Used and New from Other Sellers
from $1.99
Usually ships in 1-2 business days
(Save 98%)
Other sellers (Other Format)
  • All (21) from $1.99   
  • New (3) from $4.04   
  • Used (18) from $1.99   
Sort by
Page 1 of 1
Showing All
Note: Marketplace items are not eligible for any coupons and promotions
Seller since 2015

Feedback rating:



New — never opened or used in original packaging.

Like New — packaging may have been opened. A "Like New" item is suitable to give as a gift.

Very Good — may have minor signs of wear on packaging but item works perfectly and has no damage.

Good — item is in good condition but packaging may have signs of shelf wear/aging or torn packaging. All specific defects should be noted in the Comments section associated with each item.

Acceptable — item is in working order but may show signs of wear such as scratches or torn packaging. All specific defects should be noted in the Comments section associated with each item.

Used — An item that has been opened and may show signs of wear. All specific defects should be noted in the Comments section associated with each item.

Refurbished — A used item that has been renewed or updated and verified to be in proper working condition. Not necessarily completed by the original manufacturer.

New FAST shipping, FREE tracking, and GREAT customer service! We also offer International and EXPEDITED shipping options.

Ships from: Springdale, AR

Usually ships in 1-2 business days

  • Canadian
  • International
  • Standard, 48 States
  • Standard (AK, HI)
  • Express, 48 States
  • Express (AK, HI)
Seller since 2008

Feedback rating:


Condition: New

Ships from: Chicago, IL

Usually ships in 1-2 business days

  • Standard, 48 States
  • Standard (AK, HI)
Seller since 2007

Feedback rating:


Condition: New

Ships from: Avenel, NJ

Usually ships in 1-2 business days

  • Canadian
  • International
  • Standard, 48 States
  • Standard (AK, HI)
Page 1 of 1
Showing All
Sort by


The author team of Julia Bradley and Anita Millspaugh remain the guiding light in programming with Visual Basic .NET for countless students around the world. How better to master the most popular programming language than to use the bestselling textbook? To be at the cutting edge of technology start with specific Learning Objectives in themed Case Studies and move on to practice with Programming Skills, Exercises, and Examples. Combine screen captures, step-by-step exercises, and thorough appendices and you can ensure that Programming Excellence Begins Here.

Updated for Visual Basic .NET 2005: Programming Exercises test student understanding of the specific programming skills covered in a chapter. Object-Oriented Concepts are incorporated throughout the book, as well as the syntax and terminology of the language. Interface Guidelines are presented throughout the text to offer students a better understanding of how to write applications. Hands-On Programming Examples guide students through the process of planning, writing, and executing Visual Basic programs. Feedback Questions give students time to reflect on the current topic and to evaluate their understanding of details. Tip boxes in the margins help students avoid potential trouble spots in their programs and encourage them to develop good programming habits.

Read More Show Less

Product Details

  • ISBN-13: 9780073215884
  • Publisher: McGraw-Hill Higher Education
  • Publication date: 5/27/2005
  • Edition description: New Edition
  • Edition number: 6
  • Pages: 627
  • Product dimensions: 8.00 (w) x 10.00 (h) x 0.95 (d)

Meet the Author

Julia Case Bradley is professor emeritus at Mt. San Antonio College. From 1978 until her retirement, she taught courses in introductory and advanced Visual Basic, Access programming, and Microsoft Office in the department of Computer Information Systems. She began writing BASIC textbooks in 1984 using MS-BASIC (GW-BASIC), and has authored or co-authored texts in Macintosh Basic, QuickBasic, QBasic, Visual Basic, the Internet, and desktop publishing using PageMaker, Ventura Publisher, and Publish It.

Anita Millspaugh teaches programming courses in Visual Basic, C++, and Java at Mt. San Antonio College and has served as chair of the department for 8 years. She received her MBA from California State Polytechnic University, with a bachelor's degree in Computer Information Systems. Anita has also led Great Teacher's Conferences for Mt. Sac and for California Vocational Faculty.

Read More Show Less

Table of Contents

Introduction to Visual Basic .NET 2005     1
Writing Windows Applications with Visual Basic     2
The Windows Graphical User Interface     2
Programming Languages-Procedural, Event Driven, and Object Oriented     3
The Object Model     4
Microsoft's Visual Studio .NET     5
Writing Visual Basic Projects     6
The Three-Step Process     6
Visual Basic Application Files     7
The Visual Studio Environment     8
Default Environment Settings     8
The IDE Initial Screen     9
The New Project Dialog     9
The IDE Main Window     9
The Toolbars     11
The Document Window     12
The Form Designer     12
The Solution Explorer Window     12
The Properties Window     12
The Toolbox     12
Help     12
Design Time, Run Time, and Debug Time     13
Writing Your First Visual Basic Project     13
Set Up Your Workspace     14
Plan the Project     17
Define the User Interface     18
Set Properties     22
Write Code     28
Visual BasicCode Statements     29
Code the Event Procedures for Hello World     32
Run the Project     34
Save Your Work     35
Open the Project     36
Modify the Project     37
Print the Code     42
A Sample Printout     42
Finding and Fixing Errors     43
Syntax Errors     43
Run-Time Errors     46
Logic Errors     46
Project Debugging     47
Naming Rules and Conventions for Objects     47
Visual Studio Help     48
Installing and Running MSDN     49
Viewing Help Topics     49
Context-Sensitive Help     52
Managing Windows     52
User Interface Design     61
Introducing More Controls     62
Text Boxes     63
Masked Text Boxes     64
Group Boxes     64
Check Boxes     65
Radio Buttons     65
Picture Boxes     66
Setting a Border and Style     68
Drawing a Line     68
Working with Multiple Controls     68
Selecting Multiple Controls     69
Deselecting a Group of Controls     70
Moving Controls as a Group     70
Setting Properties for Multiple Controls     70
Aligning Controls     70
Designing Your Applications for User Convenience     71
Designing the User Interface     71
Defining Keyboard Access Keys     72
Setting the Accept and Cancel Buttons     73
Setting the Tab Order for Controls     73
Setting the Form's Location on the Screen     75
Creating ToolTips     75
Coding for the Controls     77
Clearing Text Boxes and Labels     77
Resetting the Focus     78
Setting the Checked Property of Radio Buttons and Check Boxes     78
Setting Visibility at Run Time     78
Changing the Color of Text     79
Changing Multiple Properties of a Control     79
Concatenating Text     80
Continuing Long Program Lines     81
Your Hands-On Programming Example     81
Good Programming Habits     86
Variables, Constants, and Calculations     95
Data-Variables and Constants     96
Data Types     97
Naming Rules     98
Naming Conventions      98
Constants: Named and Intrinsic     99
Declaring Variables     101
Scope and Lifetime of Variables     103
Calculations     106
Converting Strings to a Numeric Data Type     106
Arithmetic Operations     108
Order of Operations     109
Using Calculations in Code     110
Option Explicit and Option Strict     111
Converting between Numeric Data Types     113
Performing Calculations with Unlike Data Types     114
Rounding Numbers     115
Formatting Data for Display     116
Using Format Specifier Codes     116
Choosing the Controls for Program Output     118
A Calculation Programming Example     119
Planning the Project     119
The Project Coding Solution     122
Handling Exceptions     123
Try/Catch Blocks     124
Displaying Messages in Message Boxes     126
The TextMessage String     127
The Titlebar Text     127
MessageBoxButtons     127
MessageBoxIcon     127
Using Overloaded Methods     128
Testing Multiple Fields     129
Counting and Accumulating Sums     130
Summing Numbers     131
Counting     131
Calculating an Average     131
Your Hands-On Programming Example     131
Decisions and Conditions     145
If Statements     146
Charting If Statements     148
The Helpful Editor     148
Conditions     149
Comparing Numeric Variables and Constants     149
Comparing Strings     150
Testing for True or False     152
Comparing Uppercase and Lowercase Characters     152
Compound Conditions     153
Short-Circuit Operations     155
Nested If Statements     155
Using If Statements with Radio Buttons and Check Boxes     158
A "Simple Sample"     160
Checking the State of a Radio Button Group     160
Checking the State of Multiple Check Boxes     161
Enhancing Message Boxes     161
Displaying the Message String     161
Displaying Multiple Buttons     163
Input Validation     165
Checking for a Range of Values     165
Checking for a Required Field     165
Performing Multiple Validations      166
Limiting User Actions by Disabling Controls     167
The Case Structure     167
Sharing an Event Procedure     170
Calling Event Procedures     172
Your Hands-On Programming Example     174
Debugging Visual Basic Projects     180
Writing Debug Output     181
Pausing Execution with the Break All Button     182
Forcing a Break     182
Checking the Current Values of Expressions     183
Stepping through Code     184
The Locals Window     185
The Autos Window     186
Debugging Step-by-Step Tutorial     186
Menus, Common Dialog Boxes, Sub Procedures, and Function Procedures     201
Menus     202
Defining Menus     202
Creating a Menu-Step-by-Step     208
Coding for Menu Items     209
Standards for Windows Menus     211
Common Dialog Boxes     211
Displaying a Windows Common Dialog Box     212
Using the Information from the Dialog Box     212
Setting Initial Values     214
Creating Context Menus     215
Creating a Context Menu-Step-by-Step     216
Sharing Procedures     217
Writing General Procedures     218
Creating a New Sub Procedure     218
Passing Arguments to Procedures     219
Writing Function Procedures     221
Functions with Multiple Arguments     224
Breaking Calculations into Smaller Units     225
Basing a New Project on an Existing Project     227
Your Hands-On Programming Example     228
Multiform Projects     243
Using Multiple Forms     244
Creating New Forms     244
Adding and Removing Forms     246
An About Box     247
Using the About Box Template     247
Setting Assembly Information     247
A Splash Screen     250
Using the Splash Screen Template     250
Making the Splash Form Display First     251
Other Template Forms     252
Using the Methods and Events of Forms     252
Showing a Form     252
Hiding or Closing a Form     253
Responding to Form Events     254
The Sequence of Form Events     254
Writing Event Procedures for Selected Events     254
Holding the Splash Screen Display      257
Variables and Constants in Multiform Projects     257
Scope     257
Access Level     258
Lifetime     258
Namespaces     259
Declaration Summary for Variables and Constants     260
Guidelines for Declaring Variables and Constants     260
Running Your Program Outside the IDE     261
Your Hands-On Programming Example     262
Lists, Loops, and Printing     279
List Boxes and Combo Boxes     280
The Items Collection     281
Filling a List     281
The SelectedIndex Property     284
The Items.Count Property     284
Referencing the Items Collection     285
Removing an Item from a List     285
Clearing a List     287
List Box and Combo Box Events     287
Do/Loops     288
The Boolean Data Type Revisited     289
Using a Do/Loop with a List Box     291
For/Next Loops     292
Negative Increment or Counting Backward     293
Conditions Satisfied before Entry     294
Altering the Values of the Loop Control Variables     294
Endless Loops     294
Exiting Loops      294
Skipping to the Next Iteration of a Loop     295
Making Entries Appear Selected     297
Selecting the Entry in a Text Box     297
Selecting an Entry in a List Box     297
Sending Information to the Printer     298
The PrintDocument Component     298
Printing the Contents of a List Box     301
Printing the Selected Item from a List     302
Aligning Decimal Columns     302
Displaying a Print Preview     303
The Using Block     304
Printing Multiple Pages     304
Your Hands-On Programming Example     305
Arrays     321
Single-Dimension Arrays     322
Subscripts     322
Valid Subscripts     323
For Each/Next Statements     324
Structures     325
Declaring Variables Based on a Structure     326
Accessing the Elements in a Structure Variable     326
Including an Array in a Structure     326
Using Array Elements for Accumulators     327
Adding to the Correct Total     327
Debugging Array Programs     329
Table Lookup     329
Coding a Table Lookup      330
Using List Boxes with Arrays     332
Multidimensional Arrays     333
Initializing Two-Dimensional Arrays     335
Printing a Two-Dimensional Table     335
Summing a Two-Dimensional Table     336
Lookup Operation for Two-Dimensional Tables     337
Your Hands-On Programming Example     339
Programming with Visual Web Developer     353
Visual Basic and Web Programming     354
Client/Server Web Applications     354
Types of Web Sites     356
File System Web Sites     356
IIS Web Sites     356
Remote Sites and FTP Sites     357
Creating a Web Site     357
Web Page Files     357
Web Forms in the Visual Studio IDE     358
Creating Your First Web Form-Step-by-Step     359
Viewing the HTML Code     361
Controls     361
Event Handling     363
Files     363
Debugging     363
Testing in Other Browsers     365
Laying Out Web Forms     365
Using Tables for Layout     366
Including Images on Web Pages     368
Navigating Web Pages      369
Using Hyperlinks     369
Adding a Second Web Page     370
Using the Validator Controls     372
Maintaining State     372
Retaining the Contents of Controls     373
Retaining the Values of Variables     373
Managing Web Projects     375
Using the Copy Web Site Tool     375
Some Web Acronyms     375
Your Hands-On Programming Example     376
Accessing Database Files     387
Database Files     388
Visual Basic and Database Files     388
Database Terminology     388
XML Data     389
Using ADO.NET and Visual Basic     390
Data Access in Visual Studio 2005     391
Binding Sources     392
Table Adapters     392
Datasets     392
Creating a Database Application     393
A Windows Database Application-Step-By-Step     393
The Smart Tag     398
The Database Schema File     398
Binding Individual Data Fields     399
The Data Sources Window     400
Database Details Program-Step-By-Step     401
Selecting Records from a List      403
Converting to Combo Box Selection-Step-By-Step     404
Selecting Fields from the Table     405
Sorting the List Data     406
Choosing the Control Type for Fields     406
Selecting Records Using Web Forms     408
Security in Web Database Applications     409
Creating the Web Selection Application-Step-by-Step     410
Moving Database Projects     414
Your Hands-On Programming Example     415
Saving Data in Files     421
Creating Objects     422
Declaring an Object Variable     422
Instantiating an Object     422
Data Files     423
Data Files and Project Files     424
Data File Terminology     424
File Handling Using Streams     424
Writing Data in a File     425
Reading Data from a File     427
Using the File Common Dialog Box     431
OpenFileDialog Component Properties     431
Displaying the Open File Dialog Box     432
The Open and Write File Program     434
Saving the Contents of a List Box     435
Loading the List Box     436
Checking for Existence of the File     436
Saving the File     437
Querying the User to Save     438
The FormClosing Event Procedure     438
Your Hands-On Programming Example     439
OOP: Creating Object-Oriented Programs     449
Object-Oriented Programming     450
Objects     450
Object-Oriented Terminology     451
Reusable Classes     453
Multitier Applications     453
Classes     454
Designing Your Own Class     454
Creating Properties in a Class     454
Class Methods     456
Constructors and Destructors     456
Creating a New Class-Step-by-Step     458
Property Procedures with Mixed Access Levels     463
Creating a New Object Using a Class     464
Defining and Using a New Object-Step-by-Step     465
Instance Variables versus Shared Variables     467
Adding Shared Properties to the Step-by-Step Exercise     469
Destructors     470
Garbage Collection     471
Inheritance     471
Inheriting Properties and Methods     471
Constructors in Inheritance     471
Overriding Methods     472
Accessing Properties     473
Creating a Derived Class Based on BookSale     473
Adding Inheritance to the Step-by-Step Exercise     474
Creating a Base Class Strictly for Inheritance     477
Inheriting Form Classes     477
Managing Multiclass Projects     481
Adding an Existing Class File to a Project     481
Using the Object Browser     482
Examining VB Classes     483
Examining Your Own Classes     484
Your Hands-On Programming Example     484
Graphics, Animation, Sound, and Drag-and-Drop     501
Graphics in Windows and the Web     502
The Graphics Environment     502
Steps for Drawing Graphics     502
The Paint Event Procedure     503
Pen and Brush Objects     503
The Coordinate System     505
Graphics Methods     506
Random Numbers     508
Simple Animation     510
Displaying an Animated Graphic     510
Controlling Pictures at Run Time     510
Moving a Picture     513
The Timer Component     513
The Scroll Bar Controls     515
Scroll Bar Properties     515
Scroll Bar Events     517
A Programming Example     517
Playing Sounds     519
Adding Sound Files to the Resources for a Project     519
A Sound-Playing Program     519
Drag-and-Drop Programming     521
The Source Object     521
The Target Object     522
The Drag-and-Drop Program     523
Your Hands-On Programming Example     525
Additional Topics in Visual Basic     535
Advanced Validation Techniques     536
The ErrorProvider Component     536
The MaxLength and CharacterCasing Properties     538
Field-Level Validation     539
Capturing Keystrokes from the User     542
Using the Masked Text Box for Validation     543
Code Snippets and Samples     543
Code Snippets     544
Sample Projects     544
Multiple Document Interface     544
Creating an MDI Project     545
Adding a Window Menu     546
Toolbars and Status Bars     548
Toolbars     548
Status Bars     550
Some Helpful Date Controls     551
The Calendar Controls     551
Displaying Web Pages on a Windows Form     554
The WebBrowser Control     554
A WebBrowser Program     555
Checking for the Enter Key     557
Answers to Feedback Questions     561
Methods and Functions for Working with Dates, Financial Calculations, Mathematics, and String Operations     575
Working with Dates     576
The DateTime Structure     576
Retrieving the System Date and Time     577
Date Variables     578
Converting Values to a Date Format     579
Finding the Difference between Dates     579
Checking for the Day of the Week     579
Financial Functions     580
The Pmt Function     580
The Rate Function     581
Functions to Calculate Depreciation     582
Mathematical Functions     582
Working with Strings     584
Methods for Conversion between Data Types     586
Functions for Checking Validity     587
Functions for Formatting Output     588
Tips and Shortcuts for Mastering the Environment     589
Set Up the Screen for Your Convenience     590
Close or Hide Extra Windows     590
Use the Full Screen      592
Modify the Screen Layout     593
Split the Screen Vertically     594
Reset the IDE Layout     594
Set Options for Your Work     594
Use Shortcuts in the Form Designer     595
Use the Layout Toolbar     595
Nudge Controls into Place     595
Use Snap Lines to Help Align Controls     595
Use Shortcuts in the Editor     596
Use the Text Editor Toolbar     597
Use Keyboard Shortcuts When Editing Code     597
Split the Editor Window     598
Use Drag-and-Drop Editing     598
Drag Commonly Used Code to the Toolbox     599
Rename Variables and Objects     599
Use Context-Sensitive Help     599
Copy and Move Projects     599
Copy and Move a Project     599
Deploy Applications     600
.NET Security     601
Authentication and Authorization     602
IIS Authentication     602
Authorization and Impersonation     604
Writing Secure Code     605
SQL Injection     605
Error Messages     605
Code Access Security     605
Glossary      607
Index 616
Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star


4 Star


3 Star


2 Star


1 Star


Your Rating:

Your Name: Create a Pen Name or

Barnes & Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation


  • - By submitting a review, you grant to Barnes & and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Terms of Use.
  • - Barnes & reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously

    If you find inappropriate content, please report it to Barnes & Noble
    Why is this product inappropriate?
    Comments (optional)