MTU Library Catalogue

Syndetics cover image
Image from Syndetics

Programming in Visual Basic.NET / Julia Case Bradley and Anita C. Millspaugh.

By: Bradley, Julia Case.
Contributor(s): Millspaugh, A. C. (Anita C.).
Material type: materialTypeLabelBookPublisher: Boston : McGraw-Hill/Irwin, 2006Edition: Visual Basic.NET 2005 ed.Description: xxvii, 627 p. : ill. ; 28 cm.ISBN: 9780072262155; 007226215X.Subject(s): Visual Basic (Computer program language) | BASIC (Computer program language) | Microsoft .NET FrameworkDDC classification: 005.262
Contents:
Introduction to Visual Basic.NET 2005 -- User Interface design -- Variables, Constants and Calculations -- Decisions and Conditions -- Menus, Common Dialog Boxes, Sub Procedures and Function Procedures -- Multiform Projects -- Lists, Loops and Printing -- Arrays -- Programming with Visual Web Developer -- Accessing Database Files -- Saving Data in Files -- OOP: Creating Object-Oriented Programs -- Graphics, Animation, Sound and Drag-and-Drop -- Additional Topics in Visual Basic.
Holdings
Item type Current library Call number Copy number Status Barcode
General lending MTU Bishopstown Library Store 005.262 (Browse shelf(Opens below)) 1 Available 00156248
General lending MTU Bishopstown Library Lending 005.262 (Browse shelf(Opens below)) 1 Available 00155769
General lending MTU Bishopstown Library Lending 005.262 (Browse shelf(Opens below)) 1 Available 00116436
Total holds: 0

Introduction to Visual Basic.NET 2005 -- User Interface design -- Variables, Constants and Calculations -- Decisions and Conditions -- Menus, Common Dialog Boxes, Sub Procedures and Function Procedures -- Multiform Projects -- Lists, Loops and Printing -- Arrays -- Programming with Visual Web Developer -- Accessing Database Files -- Saving Data in Files -- OOP: Creating Object-Oriented Programs -- Graphics, Animation, Sound and Drag-and-Drop -- Additional Topics in Visual Basic.

CIT Module INFO 6003 - Supplementary reading

Table of contents provided by Syndetics

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