Your hands-on, step-by-step guide to learning Visual Basic® 2010.
Teach yourself the essential tools and techniques for Visual Basic® 2010-one step at a time. No matter what your skill level, you'll find the practical guidance and examples you need to start building professional applications for Windows® and the Web.
Discover how to:
Work in the Microsoft® Visual Studio® 2010 Integrated Development Environment (IDE)
Master essential techniques-from managing data and variables to using inheritance and dialog boxes
Create professional-looking UIs; add visual effects and print support
Build compelling Web features with the Visual Web Developer tool
Use Microsoft® ADO.NET and advanced data presentation controls
Debug your programs and handle run-time errors
Use new features, such as Query Builder, and Microsoft® .NET Framework
A Note Regarding the CD or DVD
The print version of this book ships with a CD or DVD. For thosecustomers purchasing one of the digital formats in which this book isavailable, we are pleased to offer the CD/DVD content as a free downloadvia O'Reilly Media's Digital Distribution services. To download thiscontent, please visit O'Reilly's web site, search for the title of thisbook to find its catalog page, and click on the link below the coverimage (Examples, Companion Content, or Practice Files). Note that whilewe provide as much of the media content as we are able via freedownload, we are sometimes limited by licensing restrictions. Pleasedirect any questions or concerns to booktech@oreilly.com.
Getting Started with Microsoft Visual Basic 2010
Chapter 1 Exploring the Visual Studio Integrated Development Environment
The Visual Studio Development Environment
The Visual Studio Tools
The Properties Window
Moving and Resizing the Programming Tools
Switching Among Open Files and Tools by Using the IDE Navigator
Opening a Web Browser Within Visual Studio
Getting Help
Customizing IDE Settings to Match Step-by-Step Exercises
One Step Further: Exiting Visual Studio
Chapter 1 Quick Reference
Chapter 2 Writing Your First Program
Lucky Seven: Your First Visual Basic Program
Programming Steps
Creating the User Interface
Setting the Properties
The Picture Box Properties
Writing the Code
A Look at the Button1_Click Procedure
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
Chapter 3 Working with Toolbox Controls
The Basic Use of Controls: The Hello World Program
Using the DateTimePicker Control
Controls for Gathering Input
One Step Further: Using the LinkLabel Control
Chapter 3 Quick Reference
Chapter 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
Event Procedures That Manage Common Dialog Boxes
One Step Further: Assigning Shortcut Keys to Menus
Chapter 4 Quick Reference
Programming Fundamentals
Chapter 5 Visual Basic Variables and Formulas and the .NET Framework
The Anatomy of a Visual Basic Program Statement
Using Variables to Store Information
Using Variables in a Program
Using a Variable to Store Input
Using a Variable for Output
Working with Specific Data Types
Working with Visual Basic Operators
Working with Math Methods in the .NET Framework
One Step Further: Establishing Order of Precedence
Chapter 5 Quick Reference
Chapter 6 Using Decision Structures
Event-Driven Programming
Using Conditional Expressions
If … Then Decision Structures
Select Case Decision Structures
One Step Further: Detecting Mouse Events
Chapter 6 Quick Reference
Chapter 7 Using Loops and Timers
Writing For … Next Loops
Using a Counter Variable in a Multiline TextBox Control
Creating Complex For … Next Loops
Writing Do Loops
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
Chapter 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
Chapter 9 Trapping Errors by Using Structured Error Handling
Processing Errors by Using the Try … Catch Statement
Writing a Disc Drive Error Handler
Using the Finally Clause to Perform Cleanup Tasks
More Complex Try … Catch Error Handlers
Comparing Error Handlers with Defensive Programming Techniques
One Step Further: The Exit Try Statement
Chapter 9 Quick Reference
Chapter 10 Creating Modules and Procedures
Working with Modules
Working with Public Variables
Creating Procedures
Writing Function Procedures
Writing Sub Procedures
One Step Further: Passing Arguments by Value and by Reference
Chapter 10 Quick Reference
Chapter 11 Using Arrays to Manage Numeric and String Data
Working with Arrays of Variables
Preserving Array Contents by Using ReDim Preserve
One Step Further: Processing Large Arrays by Using Methods in the Array Class
Chapter 11 Quick Reference
Chapter 12 Working with Collections
Working with Object Collections
Creating Your Own Collections
One Step Further: VBA Collections
Chapter 12 Quick Reference
Chapter 13 Exploring Text Files and String Processing
Reading Text Files
Writing Text Files
Processing Strings with the String Class
Sorting Text
Protecting Text with Basic Encryption
One Step Further: Using the Xor Operator
Chapter 13 Quick Reference
Designing the User Interface
Chapter 14 Managing Windows Forms and Controls at Run Time
Adding New Forms to a Program
How Forms Are Used
Working with Multiple Forms
Positioning Forms on the Windows Desktop
Adding Controls to a Form at Run Time
Organizing Controls on a Form
One Step Further: Specifying the Startup Object
Chapter 14 Quick Reference
Chapter 15 Adding Graphics and Animation Effects
Adding Artwork by Using the System.Drawing Namespace
Adding Animation to Your Programs
Expanding and Shrinking Objects While a Program is Running
One Step Further: Changing Form Transparency
Chapter 15 Quick Reference
Chapter 16 Inheriting Forms and Creating Base Classes
Inheriting a Form by Using the Inheritance Picker
Creating Your Own Base Classes
One Step Further: Inheriting a Base Class
Chapter 16 Quick Reference
Chapter 17 Working with Printers
Using the PrintDocument Class
Printing Multipage Text Files
One Step Further: Adding Print Preview and Page Setup Dialog Boxes
Chapter 17 Quick Reference
Database and Web Programming
Chapter 18 Getting Started with ADO .NET
Database Programming with ADO.NET
Using Bound Controls to Display Database Information
One Step Further: SQL Statements, LINQ, and Filtering Data
Chapter 18 Quick Reference
Chapter 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
Chapter 20 Creating Web Sites and Web Pages by Using Visual Web Developer and ASP.NET
Inside ASP.NET
Building a Web Site by Using Visual Web Developer
Using the Web Page Designer
Adding Server Controls to a Web Site
Customizing the Web Site Template
Displaying Database Records on a Web Page
One Step Further: Setting Web Site Titles in Internet Explorer
Chapter 20 Quick Reference
Appendix Where to Go for More Information
Visual Basic Web Sites
Video Web Sites
Books about Visual Basic and Visual Studio Programming
Michael Halvorson has written more than 30 books, including the popular Microsoft Visual Basic 2008 Step by Step, Microsoft Office XP Inside Out, and Microsoft Visual Basic 6.0 Professional Step by Step. A former Visual Basic localization manager at Microsoft, Michael is a professor at Pacific Lutheran University.
Comments about Microsoft Press Microsoft® Visual Basic® 2010 Step by Step:
Excellent as an introduction to Visual Basic.
The book is well written, but if you are like me, I am not a programmer, you will not be a programmer after reading the book.
However, the author is very honest, as he refer the reader to other sources in order to get a deeper understanding.
4/4/2011
(2 of 2 customers found this review helpful)
4.0
Good beginning ...
By Sir Grexie
from Germany
About Me Educator
Pros
Accurate
Easy to understand
Helpful examples
Well-written
Cons
Less
Best Uses
Student
Comments about Microsoft Press Microsoft® Visual Basic® 2010 Step by Step:
I think this book is a great help to get to know Visual Basic 2010 Express. It's easy to read and there are exercises to learn the what and the how of programming for beginners. I have the iPod version of this book and I'm able to learn Visual Basic during my sportive activities, too. Wow!
11/19/2010
(3 of 3 customers found this review helpful)
4.0
Great starting point for beginners
By Bgrstaff3281
from Iloilo, Philippines
About Me Designer, Developer, Sys Admin
Pros
Accurate
Easy to understand
Helpful examples
Well-written
Cons
Not comprehensive enough
Too basic
Best Uses
Novice
Student
Comments about Microsoft Press Microsoft® Visual Basic® 2010 Step by Step:
The book is well-organized and easy to understand. If you are new to Visual Basic, this is the book for you. It will get you up and running in no time with the VB's fundamental skills/techniques.