Book description
The new edition of the ultimate comprehensive guide to Microsoft Visual Basic
Where most VB books start with beginner level topics, Mastering Visual Basic 2010 vaults you right into intermediate and advanced coverage. From the core of the language and user interface design to developing data-driven applications, this detailed book brings you thoroughly up to speed and features numerous example programs you can use to start building your own apps right away.
Covers Visual Basic 2010, part of Microsoft's Visual Studio integrated development environment (IDE), which includes C#, C++, Visual Web Developer, and ASP.NET, along with Visual Basic
Explains topics in the thorough, step-by-step style of all books in the Mastering series, providing you ample instruction, tips, and techniques
Helps you build your own applications by supplying sample code you can use to start development
Includes review exercises in each chapter to reinforce concepts as you learn
All the books in the Sybex Mastering series feature comprehensive and expert coverage of topics you can put to immediate use.
Table of contents
- Copyright
- Dear Reader,
- Acknowledgments
- About the Author
- Introduction
-
1. Visual Basic: The Language
-
1. Getting Started with Visual Basic 2010
- 1.1. Exploring the Integrated Development Environment
- 1.2. Creating Your First VB Application
-
1.3. Understanding the IDE Components
- 1.3.1. The IDE Menus
- 1.3.2. The Toolbox Window
- 1.3.3. The Solution Explorer Window
- 1.3.4. The Properties Window
- 1.3.5. The Output Window
- 1.3.6. The Command and Immediate Windows
- 1.3.7. The Error List Window
- 1.4. Setting Environment Options
- 1.5. Building a Console Application
- 1.6. Using Code Snippets
- 1.7. Using the My Component
- 1.8. The Bottom Line
-
2. Handling Data
-
2.1. Variables
- 2.1.1. Declaring Variables
- 2.1.2. Types of Variables
- 2.1.3. The Strict, Explicit, and Infer Options
- 2.1.4. Object Variables
- 2.2. Variables as Objects
- 2.3. Constants
- 2.4. Arrays
- 2.5. The Bottom Line
-
2.1. Variables
-
3. Visual Basic Programming Essentials
- 3.1. Flow-Control Statements
- 3.2. Writing and Using Procedures
- 3.3. Arguments
- 3.4. The Bottom Line
-
1. Getting Started with Visual Basic 2010
-
2. Developing Windows Applications
- 4. GUI Design and Event-Driven Programming
-
5. Basic Windows Controls
- 5.1. The TextBox Control
- 5.2. The ListBox, CheckedListBox, and ComboBox Controls
- 5.3. The ScrollBar and TrackBar Controls
- 5.4. The Bottom Line
-
6. Working with Forms
-
6.1. The Appearance of Forms
-
6.1.1. Properties of the Form Object
- 6.1.1.1. AcceptButton, CancelButton
- 6.1.1.2. AutoScaleMode
- 6.1.1.3. AutoScroll
- 6.1.1.4. AutoScrollPosition
- 6.1.1.5. AutoScrollMargin
- 6.1.1.6. AutoScrollMinSize
- 6.1.1.7. FormBorderStyle
- 6.1.1.8. ControlBox
- 6.1.1.9. MinimizeBox, MaximizeBox
- 6.1.1.10. MinimumSize, MaximumSize
- 6.1.1.11. KeyPreview
- 6.1.1.12. SizeGripStyle
- 6.1.1.13. StartPosition, Location
- 6.1.1.14. TopMost
- 6.1.1.15. Size
- 6.1.2. Placing Controls on Forms
- 6.1.3. Setting the TabIndex Property
- 6.1.4. VB 2010 at Work: The Contacts Project
- 6.1.5. Anchoring and Docking
- 6.1.6. Splitting Forms into Multiple Panes
- 6.1.7. Form Events
-
6.1.1. Properties of the Form Object
- 6.2. Loading and Showing Forms
- 6.3. Building Dynamic Forms at Runtime
- 6.4. Designing Menus
- 6.5. The Bottom Line
-
6.1. The Appearance of Forms
-
7. More Windows Controls
-
7.1. The Common Dialog Controls
- 7.1.1. Using the Common Dialog Controls
- 7.1.2. The ColorDialog Control
- 7.1.3. The FontDialog Control
-
7.1.4. The OpenDialog and SaveDialog Controls
- 7.1.4.1. AddExtension
- 7.1.4.2. CheckFileExists
- 7.1.4.3. CheckPathExists
- 7.1.4.4. DefaultExt
- 7.1.4.5. DereferenceLinks
- 7.1.4.6. FileName
- 7.1.4.7. Filter
- 7.1.4.8. FilterIndex
- 7.1.4.9. InitialDirectory
- 7.1.4.10. RestoreDirectory
- 7.1.4.11. FileNames
- 7.1.4.12. MultiSelect
- 7.1.4.13. ReadOnlyChecked, ShowReadOnly
- 7.1.4.14. The OpenFile and SaveFile Methods
- 7.1.4.15. VB 2010 at Work: Multiple File Selection
- 7.1.5. The FolderBrowserDialog Control
- 7.2. The RichTextBox Control
- 7.3. The TreeView and ListView Controls
- 7.4. The Bottom Line
-
7.1. The Common Dialog Controls
-
3. Working with Custom Classes and Controls
-
8. Working with Objects
- 8.1. Classes and Objects
- 8.2. What Is a Class?
- 8.3. Building the Minimal Class
- 8.4. A "Real" Class
- 8.5. Operator Overloading
- 8.6. The Bottom Line
- 9. Building Custom Windows Controls
-
10. Applied Object-Oriented Programming
- 10.1. Issues in Object-Oriented Programming
- 10.2. Inheritance
- 10.3. Extension Methods
- 10.4. Polymorphism
- 10.5. Who Can Inherit What?
- 10.6. The Bottom Line
-
8. Working with Objects
-
4. Working with the .NET Framework
- 11. The Framework at Large
- 12. Storing Data in Collections
- 13. XML in Modern Programming
- 14. An Introduction to LINQ
-
5. Developing Data-Driven Applications
-
15. Programming with ADO.NET
- 15.1. What Is a Database?
-
15.2. SQL: An Overview
- 15.2.1. Executing SQL Statements
-
15.2.2. Selection Queries
- 15.2.2.1. Limiting the Selection with WHERE
- 15.2.2.2. Combining Data from Multiple Tables
- 15.2.2.3. Aliasing Table Names
- 15.2.2.4. Aliasing Column Names
- 15.2.2.5. Skipping Duplicates with DISTINCT
- 15.2.2.6. The LIKE Operator
- 15.2.2.7. Null Values and the ISNULL Function
- 15.2.2.8. Sorting the Rows with ORDER BY
- 15.2.3. Working with Calculated Fields
- 15.2.4. Calculating Aggregates
- 15.2.5. Using SQL Joins
- 15.2.6. Grouping Rows
- 15.3. Action Queries
- 15.4. Stream- versus Set-Based Data Access
- 15.5. The Basic Data-Access Classes
- 15.6. The Bottom Line
-
16. Developing Data-Driven Applications
- 16.1. Using Business Objects
- 16.2. Storing Data in DataSets
- 16.3. Performing Update Operations
- 16.4. VB 2010 at Work: The SimpleDataSet Project
- 16.5. The Bottom Line
-
17. Using the Entity Data Model
-
17.1. The Entity Framework: Raising the Data Abstraction Bar
- 17.1.1. How Will You Benefit from the Entity Framework?
-
17.1.2. Entity Data Model: Model-First Approach
- 17.1.2.1. Using the EDM Designer
- 17.1.2.2. Creating a New Entity Data Model
- 17.1.2.3. Connecting the EDM to a Database
- 17.1.2.4. Creating an Entity
- 17.1.2.5. Creating a Primary Key
- 17.1.2.6. Creating a Scalar Property
- 17.1.2.7. Entity Data Model Under the Hood
- 17.1.2.8. Adding an Inheritance Relationship Between Entities
- 17.1.2.9. Adding a Complex Property to an Entity
- 17.1.2.10. Adding a One-to-Many Association
- 17.1.2.11. Adding a Many-to-Many Association
- 17.1.2.12. Generate the Database Structure
- 17.2. Putting the EDM to Work
- 17.3. Reverse-Engineering an Entity Data Model
- 17.4. The Bottom Line
-
17.1. The Entity Framework: Raising the Data Abstraction Bar
-
18. Building Data-Bound Applications
- 18.1. Working with Typed DataSets
- 18.2. Data Binding
- 18.3. Designing Data-Driven Interfaces the Easy Way
- 18.4. The Bottom Line
-
15. Programming with ADO.NET
-
6. Developing for the Web
-
19. Accessing the Web
- 19.1. The WebBrowser Control
- 19.2. Accessing the Web with the WebClient and HttpWebRequest/Response Classes
- 19.3. Putting It All Together: The Address Visualization Form
- 19.4. The Bottom Line
-
20. Building Web Applications
- 20.1. Developing for the Web
- 20.2. Understanding HTML and XHTML
- 20.3. Working with HTML
- 20.4. Cascading Style Sheets (CSS)
- 20.5. JavaScript
- 20.6. Microformats
- 20.7. Server-Side Technologies
- 20.8. Creating a Web Application
- 20.9. Controls
- 20.10. Maintaining State
- 20.11. Master Pages
- 20.12. ASP.NET Objects
- 20.13. Postback
- 20.14. VB 2010 at Work: Online Ordering Application
- 20.15. The Bottom Line
-
21. Building and Using Web Services
- 21.1. Using ASP.NET and WCF Web Services
- 21.2. Understanding Technologies Associated with Web Services
- 21.3. Creating a Simple ASP.NET Web Service
- 21.4. Developing a Stand-Alone Web Service
- 21.5. Simple AJAX Implementation
- 21.6. Building and Using WCF Services
- 21.7. ADO.NET Data Services
- 21.8. The Bottom Line
-
A. The Bottom Line
- A.1. Chapter 1: Getting Started with Visual Basic 2010
- A.2. Chapter 2: Handling Data
- A.3. Chapter 3: Visual Basic Programming Essentials
- A.4. Chapter 4: GUI Design and Event-Driven Programming
- A.5. Chapter 5: Basic Windows Controls
- A.6. Chapter 6: Working with Forms
- A.7. Chapter 7: More Windows Controls
- A.8. Chapter 8: Working with Projects
- A.9. Chapter 9: Building Custom Windows Controls
- A.10. Chapter 10: Applied Object-Oriented Programming
- A.11. Chapter 11: The Framework at Large
- A.12. Chapter 12: Storing Data in Collections
- A.13. Chapter 13: XML in Modern Programming
- A.14. Chapter 14: An Introduction to LINQ
- A.15. Chapter 15: Programming with ADO.NET
- A.16. Chapter 16: Developing Data-Driven Applications
- A.17. Chapter 17: Using the Entity Data Model
- A.18. Chapter 18: Building Data-Bound Applications
- A.19. Chapter 19: Accessing the Web
- A.20. Chapter 20: Building Web Applications
- A.21. Chapter 21: Building and Using Web Services
-
19. Accessing the Web
Product information
- Title: Mastering Microsoft® Visual Basic® 2010
- Author(s):
- Release date: April 2010
- Publisher(s): Sybex
- ISBN: 9780470532874
You might also like
book
The Art of Communication
Bring nuance, depth, and meaning to every conversation you have The Art of Communication is for …
book
CATIA V5
Write powerful, custom macros for CATIA V5 CATIA V5 Macro Programming with Visual Basic Script shows …
audiobook
How to Do Nothing
A galvanizing critique of the forces vying for our attention-and our personal information-that redefines what we …
audiobook
The Design of Everyday Things
First, businesses discovered quality as a key competitive edge; next came science. Now, Donald A. Norman, …