Book description
This expert guide covers what you need to know to program with Visual Basic 2008, employ the latest Visual Studio 2008 tools, and operate efficiently within the .NET Framework. In an easy-to-follow style, the book moves from in-depth explanations to practical instruction to real-world examples. Explore basic coding in VB 2008 and learn to build interfaces without coding by using Visual Studio 2008's drag-and-drop visual tools. You'll get up to speed on LINQ and handle key tasks such as programming TreeView controls, and more.
Table of contents
- Copyright
- Acknowledgments
- About the Author
- Introduction
-
1. Getting Started with Visual Basic 2008
- 1.1. Exploring the Integrated Development Environment
- 1.2. Creating Your First VB Application
- 1.3. Making the Application More User-Friendly
- 1.4. Understanding the IDE Components
- 1.5. Setting Environment Options
- 1.6. Building a Console Application
- 1.7. Using Code Snippets
- 1.8. Using the My Object
- 1.9. The Bottom Line
-
2. Variables and Data Types
- 2.1. Variables
- 2.2. Object Variables
- 2.3. Variables as Objects
- 2.4. Constants
- 2.5. Arrays
- 2.6. The Bottom Line
-
3. Programming Fundamentals
- 3.1. Flow-Control Statements
- 3.2. Writing and Using Procedures
- 3.3. Arguments
- 3.4. The Bottom Line
- 4. GUI Design and Event-Driven Programming
- 5. The Vista Interface
-
6. Basic Windows Controls
- 6.1. The TextBox Control
- 6.2. The ListBox, CheckedListBox, and ComboBox Controls
- 6.3. The ScrollBar and TrackBar Controls
- 6.4. The Bottom Line
-
7. Working with Forms
-
7.1. The Appearance of Forms
-
7.1.1. Properties of the Form Object
- 7.1.1.1. AcceptButton, CancelButton
- 7.1.1.2. AutoScaleMode
- 7.1.1.3. AutoScroll
- 7.1.1.4. AutoScrollPosition
- 7.1.1.5. AutoScrollMargin
- 7.1.1.6. AutoScrollMinSize
- 7.1.1.7. FormBorderStyle
- 7.1.1.8. ControlBox
- 7.1.1.9. MinimizeBox, MaximizeBox
- 7.1.1.10. MinimumSize, MaximumSize
- 7.1.1.11. KeyPreview
- 7.1.1.12. SizeGripStyle
- 7.1.1.13. StartPosition, Location
- 7.1.1.14. TopMost
- 7.1.1.15. Size
- 7.1.2. Placing Controls on Forms
- 7.1.3. Setting the TabOrder Property
- 7.1.4. VB 2008 at Work: The Contacts Project
- 7.1.5. Anchoring and Docking
- 7.1.6. Splitting Forms into Multiple Panes
- 7.1.7. The Form's Events
-
7.1.1. Properties of the Form Object
- 7.2. Loading and Showing Forms
- 7.3. Building Dynamic Forms at Runtime
- 7.4. Designing Menus
- 7.5. The Bottom Line
-
7.1. The Appearance of Forms
-
8. More Windows Controls
-
8.1. The Common Dialog Controls
- 8.1.1. Using the Common Dialog Controls
- 8.1.2. The ColorDialog Control
- 8.1.3. The FontDialog Control
-
8.1.4. The OpenDialog and SaveDialog Controls
- 8.1.4.1. AddExtension
- 8.1.4.2. CheckFileExists
- 8.1.4.3. CheckPathExists
- 8.1.4.4. DefaultExt
- 8.1.4.5. DereferenceLinks
- 8.1.4.6. FileName
- 8.1.4.7. Filter
- 8.1.4.8. FilterIndex
- 8.1.4.9. InitialDirectory
- 8.1.4.10. RestoreDirectory
- 8.1.4.11. FileNames
- 8.1.4.12. MultiSelect
- 8.1.4.13. ReadOnlyChecked, ShowReadOnly
- 8.1.4.14. The OpenFile and SaveFile Methods
- 8.1.4.15. VB 2008 at Work: Multiple File Selection
- 8.1.5. The FolderBrowserDialog Control
-
8.2. The RichTextBox Control
- 8.2.1. The RTF Language
- 8.2.2. Text Manipulation and Formatting Properties
- 8.2.3. Methods
- 8.2.4. Advanced Editing Features
- 8.2.5. Cutting and Pasting
- 8.2.6. Searching in a RichTextBox Control
- 8.2.7. Handling URLs in the Document
- 8.2.8. Displaying a Formatted Directory Listing
- 8.2.9. VB 2008 at Work: The RTFPad Project
- 8.3. The Bottom Line
-
8.1. The Common Dialog Controls
-
9. The TreeView and ListView Controls
- 9.1. Understanding the ListView, TreeView, and ImageList Controls
- 9.2. The TreeView Control
-
9.3. The ListView Control
- 9.3.1. The Columns Collection
- 9.3.2. ListView Items and Subitems
- 9.3.3. The Items Collection
- 9.3.4. The SubItems Collection
- 9.3.5. VB 2008 at Work: The ListViewDemo Project
- 9.3.6. Sorting the ListView Control
- 9.3.7. Processing Selected Items
- 9.3.8. VB 2008 at Work: The CustomExplorer Project
- 9.3.9. Additional Topics
- 9.4. The Bottom Line
-
10. Building Custom Classes
- 10.1. Classes and Objects
- 10.2. What Is a Class?
- 10.3. Building the Minimal Class
- 10.4. A "Real" Class
- 10.5. Operator Overloading
- 10.6. The Bottom Line
-
11. Working with Objects
-
11.1. Issues in Object-Oriented Programming
- 11.1.1. Classes versus Objects
- 11.1.2. Objects versus Object Variables
- 11.1.3. Properties versus Fields
- 11.1.4. Shared versus Instance Members
- 11.1.5. Type Casting
- 11.1.6. Early versus Late Binding
- 11.1.7. Discovering a Variable's Type
- 11.1.8. Inheritance
- 11.1.9. How to Apply Inheritance
- 11.1.10. Polymorphism
- 11.1.11. Building the Shape Class
- 11.2. Who Can Inherit What?
- 11.3. The Bottom Line
-
11.1. Issues in Object-Oriented Programming
- 12. Building Custom Windows Controls
- 13. Handling Strings, Characters, and Dates
- 14. Storing Data in Collections
-
15. Accessing Folders and Files
- 15.1. The IO Namespace and the FileSystem Component
- 15.2. Using the My.Computer.FileSystem Component
- 15.3. Manipulating Folders and Fileswith the IO Namespace
- 15.4. Accessing Files
- 15.5. The FileSystemWatcher Component
- 15.6. The Bottom Line
- 16. Serialization and XML
- 17. Querying Collections and XML with LINQ
- 18. Drawing and Painting with Visual Basic 2008
- 19. Manipulating Images and Bitmaps
- 20. Printing with Visual Basic 2008
-
21. Basic Concepts of Relational Databases
- 21.1. What Is a Database?
- 21.2. Server Explorer
-
21.3. Structured Query Language
- 21.3.1. Executing SQL Statements
-
21.3.2. Using Selection Queries
- 21.3.2.1. Limiting the Selection with Where
- 21.3.2.2. Selecting Columns from Multiple Tables
- 21.3.2.3. Aliasing Table Names
- 21.3.2.4. Aliasing Column Names with AS
- 21.3.2.5. Skipping Duplicates with DISTINCT
- 21.3.2.6. The LIKE Operator
- 21.3.2.7. Null Values and the ISNULL Function
- 21.3.2.8. Sorting the Rows with ORDER BY
- 21.3.2.9. Limiting the Number of Rows with TOP
- 21.3.3. Working with Calculated Fields
- 21.3.4. Calculating Aggregates
- 21.3.5. Using SQL Joins
- 21.3.6. Grouping Rows
- 21.3.7. Limiting Groups with HAVING
- 21.3.8. Selecting Groups with IN and NOT IN
- 21.3.9. Selecting Ranges with BETWEEN
- 21.4. Action Queries
- 21.5. TheQuery Builder
- 21.6. Stored Procedures
- 21.7. The Bottom Line
- 22. Programming with ADO.NET
-
23. Building Data-Bound Applications
- 23.1. Working with Typed DataSets
- 23.2. Data Binding
- 23.3. Designing Data-Driven Interfaces the Easy Way
- 23.4. The Bottom Line
- 24. Advanced DataSet Operations
-
25. Building Web Applications
- 25.1. Developing for theWeb
- 25.2. Understanding HTML and XHTML
- 25.3. Working with HTML
- 25.4. Cascading Style Sheets (CSS)
- 25.5. JavaScript
- 25.6. Microformats
- 25.7. Server-Side Technologies
- 25.8. Creating a Web Application
- 25.9. Controls
- 25.10. Maintaining State
- 25.11. Master Pages
- 25.12. ASP.NET Objects
- 25.13. Postback
- 25.14. The Bottom Line
-
26. ASP.NET 3.5
- 26.1. Planning the Demonstration Site
- 26.2. Building the Style Sheet for MasterPage.master
- 26.3. Creating the Content Master Page
- 26.4. Adding Elements to theMainMaster Page
- 26.5. Building the SiteNavigation
- 26.6. Adding Authentication
- 26.7. Adding Content Pages
- 26.8. Adding Further Content Pages
- 26.9. Working with Data
- 26.10. Building the Computers.aspx Page
- 26.11. Building the Report.aspx page
- 26.12. The Bottom Line
- 27. ASP.NET Web Services
-
A. The Bottom Line
- A.1. Chapter 1: Getting StartedwithVisual Basic 2008
- A.2. Chapter 2: Variables and Data Types
- A.3. Chapter 3: Programming Fundamentals
- A.4. Chapter 4: GUI Design and Event-Driven Programming
- A.5. Chapter 5: The Vista Interface
- A.6. Chapter 6: Basic Windows Controls
- A.7. Chapter 7: Working with Forms
- A.8. Chapter 8: More Windows Controls
- A.9. Chapter 9: The TreeView and ListView Controls
- A.10. Chapter 10: Building Custom Classes
- A.11. Chapter 11: Working with Objects
- A.12. Chapter 12: Building Custom Windows Controls
- A.13. Chapter 13: Handling Strings, Characters, and Dates
- A.14. Chapter 14: StoringData in Collections
- A.15. Chapter 15: Accessing Folders and Files
- A.16. Chapter 16: Serialization and XML
- A.17. Chapter 17: Querying Collections and XML with LINQ
- A.18. Chapter 18: Drawing and Painting with Visual Basic 2008
- A.19. Chapter 19: Manipulating Images and Bitmaps
- A.20. Chapter 20: Printing with Visual Basic 2008
- A.21. Chapter 21: Basic Concepts of Relational Databases
- A.22. Chapter 22: Programming with ADO.NET
- A.23. Chapter 23: Building Data-Bound Applications
- A.24. Chapter 24: Advanced DataSet Operations
- A.25. Chapter 25: Building Web Applications
- A.26. Chapter 26: ASP.NET 3.5
- A.27. Chapter 27: ASP.Net Web Services
-
B. Error Handling and Debugging
- B.1. Understanding the Types of Errors
- B.2. Working with Exceptions and Structured Exception Handling
- B.3. Debugging
Product information
- Title: Mastering Microsoft® Visual Basic® 2008
- Author(s):
- Release date: March 2008
- Publisher(s): Sybex
- ISBN: 9780470187425
You might also like
book
Microsoft® Visual Basic® 2008 Step by Step
Teach yourself the fundamentals of working with Visual Basic 2008 one step at a time. With …
book
Moving to Microsoft® Visual Studio® 2010
This book will show you how to transition from previous versions of Microsoft® Visual Studio, to …
book
Working with Microsoft® Visual Studio® 2005 Team System
Get a pragmatic overview of the new team-based system of products that bring Visual Studio development …
book
Applying COM+
COM+ is Microsoft¿s new version of its COM object-oriented programming framework. Built into Windows 2000, this …