- 2 Writing Your First Program
- Visual Basic Program Lucky Seven: Your First
- Programming Steps
- Creating the User Interface
- Setting the Properties
- The Picture Box Properties
- Writing the Code
- Procedure A Look at the Button1_Click
- Running Visual Basic Applications
- Sample Projects on Disk
- Building an Executable File
- Deploying Your Application
- One Step Further: Adding to a Program
- Chapter 2 Quick Reference
- 3 Working with Toolbox Controls
- World Program The Basic Use of Controls: The Hello
- Using the DateTimePicker Control
- The Birthday Program
- Controls for Gathering Input
- Using Group Boxes and Radio Buttons
- Processing Input with List Boxes
- A Word About Terminology
- One Step Further: Using the LinkLabel Control
- Chapter 3 Quick Reference
- 4 Working with Menus, Toolbars, and Dialog Boxes
- Adding Menus by Using the MenuStrip Control
- Adding Access Keys to Menu Commands
- Processing Menu Choices
- Adding Toolbars with the ToolStrip Control
- Using Dialog Box Controls
- Dialog Boxes Event Procedures That Manage Common
- One Step Further: Assigning Shortcut Keys to Menus
- Chapter 4 Quick Reference
- and the .NET Framework 5 Visual Basic Variables and Formulas,
- The Anatomy of a Visual Basic Program Statement
- Using Variables to Store Information
- Setting Aside Space for Variables: The Dim Statement
- Implicit Variable Declaration
- Using Variables in a Program
- Using a Variable to Store Input
- Using a Variable for Output
- Working with Specific Data Types
- Constants: Variables That Don’t Change
- Working with Visual Basic Operators
- Basic Math: The +, –, *, and / Operators
- Using Advanced Operators: \, Mod, ^, and &
- Working with Math Methods in the .NET Framework
- One Step Further: Establishing Order of Precedence
- Using Parentheses in a Formula
- Chapter 5 Quick Reference
- 6 Using Decision Structures
- Event-Driven Programming
- Using Conditional Expressions
- If Then Decision Structures
- Decision Structure Testing Several Conditions in an If Then
- Using Logical Operators in Conditional Expressions
- Short-Circuiting by Using AndAlso and OrElse
- Select Case Decision Structures
- Case Structure Using Comparison Operators with a Select
- One Step Further: Detecting Mouse Events
- Chapter 6 Quick Reference
- 7 Using Loops and Timers
- Writing For Next Loops
- Using a Counter Variable in a Multiline TextBox Control
- Creating Complex For Next Loops
- Using a Counter That Has Greater Scope
- Writing Do Loops x Table of Contents
- Avoiding an Endless Loop
- The Timer Control
- Creating a Digital Clock by Using a Timer Control
- Using a Timer Object to Set a Time Limit
- One Step Further: Inserting Code Snippets
- Chapter 7 Quick Reference
- 8 Debugging Visual Basic Programs
- Finding and Correcting Errors
- Three Types of Errors
- Identifying Logic Errors
- Debugging 101: Using Debugging Mode
- Tracking Variables by Using a Watch Window
- Visualizers: Debugging Tools That Display Data
- Using the Immediate and Command Windows
- Switching to the Command Window
- One Step Further: Removing Breakpoints
- Chapter 8 Quick Reference
- 9 Trapping Errors by Using Structured Error Handling
- Processing Errors by Using the Try Catch Statement
- When to Use Error Handlers
- Setting the Trap: The Try Catch Code Block
- Path and Disc Drive Errors
- Writing a Disc Drive Error Handler
- Using the Finally Clause to Perform Cleanup Tasks
- More Complex Try Catch Error Handlers
- The Exception Object
- Specifying a Retry Period
- Using Nested Try Catch Blocks
- Programming Techniques Comparing Error Handlers with Defensive
- One Step Further: The Exit Try Statement
- Chapter 9 Quick Reference
- Processing Errors by Using the Try Catch Statement
- 10 Creating Modules and Procedures
- Working with Modules
- Creating a Module
- Working with Public Variables
- Creating Procedures Table of Contents xi
- Writing Function Procedures
- Function Syntax
- Calling a Function Procedure
- Using a Function to Perform a Calculation
- Writing Sub Procedures
- Sub Procedure Syntax
- Calling a Sub Procedure
- Using a Sub Procedure to Manage Input
- and by Reference One Step Further: Passing Arguments by Value
- Chapter 10 Quick Reference
- Working with Modules
- 11 Using Arrays to Manage Numeric and String Data
- Working with Arrays of Variables
- Creating an Array
- Declaring a Fixed-Size Array
- Setting Aside Memory
- Working with Array Elements
- Declaring an Array and Assigning It Initial Values
- Creating a Fixed-Size Array to Hold Temperatures
- Creating a Dynamic Array
- Preserving Array Contents by Using ReDim Preserve
- Using ReDim for Three-Dimensional Arrays
- by Using Methods in the Array Class One Step Further: Processing Large Arrays
- The Array Class
- Chapter 11 Quick Reference
- Working with Arrays of Variables
- 12 Working with Collections
- Working with Object Collections
- Referencing Objects in a Collection
- Writing For Each Next Loops
- Experimenting with Objects in the Controls Collection
- Using the Name Property in a For Each Next Loop
- Creating Your Own Collections
- Declaring New Collections
- One Step Further: VBA Collections
- Entering the Word Macro
- Chapter 12 Quick Reference
- Working with Object Collections
- 13 Exploring Text Files and String Processing xii Table of Contents
- Reading Text Files
- The My Namespace
- The StreamReader Class
- Using the ReadAllText Method
- Writing Text Files
- The WriteAllText Method
- The StreamWriter Class
- Using the WriteAllText Method
- Processing Strings with the String Class
- Sorting Text
- Working with ASCII Codes
- Sorting Strings in a Text Box
- Examining the Sort Text Program Code
- Protecting Text with Basic Encryption
- One Step Further: Using the Xor Operator
- Examining the Encryption Program Code
- Chapter 13 Quick Reference
- Reading Text Files
- 14 Managing Windows Forms and Controls at Run Time Part III Designing the User Interface
- Adding New Forms to a Program
- How Forms Are Used
- Working with Multiple Forms
- Using the DialogResult Property in the Calling Form
- Positioning Forms on the Windows Desktop
- Minimizing, Maximizing, and Restoring Windows
- Adding Controls to a Form at Run Time
- Organizing Controls on a Form
- One Step Further: Specifying the Startup Object
- Chapter 14 Quick Reference
- 15 Adding Graphics and Animation Effects
- the System.Drawing Namespace Adding Artwork by Using
- Using a Form’s Coordinate System
- The System.Drawing.Graphics Class
- Using the Form’s Paint Event
- Adding Animation to Your Programs Table of Contents xiii
- Moving Objects on the Form
- The Location Property
- Creating Animation by Using a Timer Object
- Expanding and Shrinking Objects While a Program Is Running
- One Step Further: Changing Form Transparency
- Chapter 15 Quick Reference
- the System.Drawing Namespace Adding Artwork by Using
- 16 Inheriting Forms and Creating Base Classes
- Inheriting a Form by Using the Inheritance Picker
- Creating Your Own Base Classes
- Adding a New Class to Your Project
- One Step Further: Inheriting a Base Class
- Chapter 16 Quick Reference
- 17 Working with Printers
- Using the PrintDocument Class
- Printing Text from a Text Box Object
- Printing Multipage Text Files
- One Step Further: Adding Print Preview and Page Setup Dialog Boxes
- Chapter 17 Quick Reference
- Using the PrintDocument Class
- 18 Getting Started with ADO .NET Part IV Database and Web Programming
- Database Programming with ADO .NET
- Database Terminology
- Working with an Access Database
- The Data Sources Window
- Database Information Using Bound Controls to Display
- and Filtering Data One Step Further: SQL Statements, LINQ,
- Chapter 18 Quick Reference
- Database Programming with ADO .NET
- 19 Data Presentation Using the DataGridView Control
- Using DataGridView to Display Database Records
- Formatting DataGridView Cells
- Adding a Second Data Grid View Object
- One Step Further: Updating the Original Database
- Chapter 19 Quick Reference
tina meador
(Tina Meador)
#1