Programming in Visual Basic 2010
The Very Beginner’s Guide
Table of Contents
Preface page
1 Fundamentals of Design and Programming – Starting from Scratch
What Is Programming?
Basic Tasks
Basic Procedures
Following Directions
Interface/Instructions – The Human/Computer Connections
What Is a Program?
Your First Program – College Tuition
VB Basics
Summary
Review
Terms
Keywords
2 Variables and Constants – A Place for Everything and Everything in Its Place
Computer Memory: Location, Location, Location
Declarations, Input, Processing, Output – No Program Should Be Without Them
Summary
Review
Terms
Keywords
3 Writing Programs – First You Walk, Then You Run
Following IPO
Commenting Your Code
Formatting Your Output
Errors in Your Program
Debugging Practice
Controlling Your Controls
Data Type Conversion
Jim Soxx Sports Sales Program
Open and Run
Fixing a Program – Van Nilla’s Ice Cream Stand
On Your Own
Summary
Review
Terms
Keywords
4 Writing Programs II – More Controls and New Logic
Variable Scope
Counters and Accumulators
More Data Types
Methods
The Load Event
More Controls
Controlling Strings
Tying It All Together
Fixing a Program
On Your Own
Summary
Review
Terms
Keywords
5 Using If and Case – Decisions, Decisions, Decisions
What Are Decision Structures?
If . . . Then. . . Else Structures
Flowchart Update
Deskcheck
Potential Problems
Data Validation
Stacked If Structures
ElseIf
Guessing Game Case Study
Case Structures
A Roll of the Dice Case Study
Tying It All Together
On Your Own
Summary
Review
Terms
Keywords
6 Loops – Once Is Not Enough
What Are Loops?
For . . . Next Loops
DoWhile Loops
Do LoopWhile
Do Until Loops
Do Loop Until
Loop Questions
Infinite Loops
Nested Loops
Chr and Asc Commands
A Little FunWith Graphics
Tying It All Together
Potential Problems
Fixing a Program
On Your Own
Summary
Review
Terms
Keywords
7 Procedures and Functions – Divide and Conquer
Why Use Procedures?
Flowcharting Procedures
Potential Problems
Functions
Flowcharting Functions
Potential Problems
New Controls – Menus and Timers
Tying It All Together
Fixing a Program
On Your Own
Summary
Review
Terms
Keywords
8 Writing Programs III – Tying It All Together, So Far
RadioButtons
CheckBoxes
Potential Problems
ListBoxes
ComboBoxes
CheckedListBoxes
Tab Controls, ScrollBars, and TrackBars
Multiple Forms
Controlling Strings
MaskedTextBox
Pizza Program Finished
Tying It All Together
Potential Problems
On Your Own
Summary
Review
Terms
Keywords
9 File I/O – Files and Records and Fields, Oh My!
The Basics of File Input and Output
Sequential File Access
File Output
Dialog Boxes
Try-Catch Blocks
Intro to Namespaces
Control Break Programming
Minor Control Break Processing
Updating Files
Merging Files
Fixing a Program
On Your Own
Summary
Review
Terms
Keywords
10 Arrays and Structures – Organizing Data
Arrays – Order by the Numbers
Using an Array
Arrays and Loops – Hand in Hand
Loading an Array From a File
Searching an Array
Sorting an Array
Two-Dimensional Arrays
Student Grade Program Case Study
Structures
On Your Own
Summary
Review
Terms
Keywords
11 Events and More Controls – Tips and Tricks for Programming
New Events
Mouse Events
Potential Problems
Potential Problems
New Controls
Variable Scope
Globals
Overloading
Event Handlers
Potential Problems
Fixing a Program
On Your Own
Summary
Review
Terms
Keywords
12 Objects and Classes – Objects Are in a Class By Themselves
Built-in Objects
Creating Classes of Your Own
Using Classes
Student Grade Class
Potential Problems
Employee Pay Class
Inheritance
Potential Problems
Why Use Classes?
Fixing a Program
On Your Own
Summary
Review
Terms
Keywords
13 Graphics – The Visual (and Audio) Side of Visual Basic
Graphic Basics
Drawing
Images
Potential Problems
Simple Paint Tutorial
Sound
Windows Media Player
Creating Charts
Potential Problems
Fixing a Program
On Your Own
Summary
Review
Terms
Keywords
14 LINQ to SQL – The World Runs on Databases
Background
Connecting to a Database Tutorial
Wages Tutorial
Potential Problems
Customer Queries
Potential Problems
On Your Own
Summary
Review
Terms
Keywords
15 Crystal Reports – Tying Databases to Output
Crystal Reports Tutorial
Creating a Report Using the ReportWizard
Mailing Labels
Potential Problems
On Your Own
Summary
Review
Terms
Keywords
Appendix A American Standard Code for Information Interchange (ASCII) Table
Appendix B Flowchart Table
Appendix C My Application
Appendix D Customizing Your VB Environment
Appendix E Using Help
Appendix F Using Debug
Appendix G Structured Query Language (SQL) Basics
Appendix H Answers to Self-Check Questions
Appendix I Control and Variable Naming Conventions
Index
Please download here PDF | 8,98 MB
Read More ->>