Book description
The 2008 version of Visual Basic is tremendously enhanced and introduces dramatic new concepts, techniques, and features to this popular object-oriented language. Written by an elite author team, this comprehensive resource provides a clear and concise approach to using VB 2008 in the ever-expanding .NET world. This book focuses on using the latest and most powerful tools from the Microsoft arsenal within your Visual Basic solutions. You?ll examine everything from the .NET Framework to the best practices for deploying .NET applications to database access and integrating with other technologies.
Table of contents
- Copyright
- About the Authors
- About the Technical Editors
- Credits
- Introduction
-
1. Visual Basic 2008 Core Elements
- 1.1. Initial Keywords and Syntax
- 1.2. Value and Reference Types
- 1.3. Commands: Conditional
- 1.4. Value Types (Structures)
- 1.5. Reference Types (Classes)
- 1.6. Commands: Looping Statements
- 1.7. Boxing
- 1.8. Parameter Passing
- 1.9. Variable Scope
- 1.10. Data Type Conversions
- 1.11. Summary
-
2. Object Syntax Introduction
- 2.1. Object-Oriented Terminology
- 2.2. Working with Objects
- 2.3. Creating Classes
- 2.4. Advanced Concepts
- 2.5. Summary
-
3. Object-Oriented Programming
-
3.1. Inheritance
-
3.1.1. Implementing Inheritance
- 3.1.1.1. Creating a Base Class
- 3.1.1.2. Creating a Subclass
- 3.1.1.3. Overloading Methods
- 3.1.1.4. Overriding Methods
- 3.1.1.5. Shadowing
- 3.1.1.6. Levels of Inheritance
- 3.1.1.7. Interacting with the Base Class, Your Class, and Your Object
- 3.1.1.8. Constructors
- 3.1.1.9. Protected Scope
- 3.1.1.10. Events and Inheritance
- 3.1.1.11. Shared Methods
- 3.1.1.12. Shared Events
- 3.1.1.13. Creating an Abstract Base Class
- 3.1.2. Preventing Inheritance
-
3.1.1. Implementing Inheritance
- 3.2. Multiple Interfaces
- 3.3. Abstraction
- 3.4. Encapsulation
- 3.5. Polymorphism
- 3.6. Inheritance
- 3.7. Summary
-
3.1. Inheritance
- 4. The Common Language
- 5. Localization
- 6. Generics
- 7. Namespaces
-
8. Exception Handling and Debugging
- 8.1. A Brief Review of Error Handling in VB6
- 8.2. Exceptions in .NET
- 8.3. Structured Exception-Handling Keywords
- 8.4. Interoperability with VB6-Style Error Handling
- 8.5. Error Logging
- 8.6. Analyzing Problems and Measuring Performance via the Trace Class
- 8.7. Summary
-
9. Data Access with ADO.NET 3.5
- 9.1. ADO.NET Architecture
- 9.2. Basic ADO.NET Features
- 9.3. .NET Data Providers
- 9.4. The DataSet Component
- 9.5. Working with the Common Provider Model
- 9.6. Connection Pooling in ADO.NET
- 9.7. Building a Data-Access Component
- 9.8. Summary
-
10. Using XML in Visual Basic 2008
- 10.1. An Introduction to XML
- 10.2. XML Serialization
- 10.3. System.Xml Document Support
- 10.4. XML Stream-Style Parsers
- 10.5. XSLT Transformations
- 10.6. ADO.NET
- 10.7. XML in ASP.NET 3.5
- 10.8. Summary
-
11. LINQ
- 11.1. LINQ to SQL and Visual Studio 2008
- 11.2. How Objects Map to LINQ Objects
- 11.3. Working Without the O/R Designer
- 11.4. Custom Objects and the O/R Designer
- 11.5. Querying the Database
- 11.6. Stored Procedures
- 11.7. LINQ to XML
- 11.8. LINQ to XML and .NET 3.5
- 11.9. New XML Objects from the .NET Framework 3.5
- 11.10. Visual Basic 2008 and XML Literals
- 11.11. Using LINQ to Query XML Documents
- 11.12. Working Around the XML Document
- 11.13. Using LINQ to SQL with LINQ to XML
- 11.14. Summary
- 12. Security in the .NET Framework
-
13. Visual Studio 2008
- 13.1. Visual Studio 2008: Express through Team Suite
- 13.2. Project ProVB_VS in Visual Studio
- 13.3. Enhancing a Sample Application
- 13.4. Useful Features of Visual Studio 2008
- 13.5. Summary
- 14. Working with SQL Server
-
15. Windows Forms
- 15.1. Changes in Windows Forms Version 2.0
- 15.2. The System.Windows.Forms Namespace
-
15.3. Using Forms
- 15.3.1. Showing Forms via Sub Main
- 15.3.2. Setting the Startup Form
- 15.3.3. Startup Location
- 15.3.4. Form Borders
- 15.3.5. Always on Top — The TopMost Property
- 15.3.6. Owned Forms
- 15.3.7. Making Forms Transparent and Translucent
- 15.3.8. Visual Inheritance
- 15.3.9. Scrollable Forms
- 15.3.10. MDI Forms
- 15.3.11. An MDI Example in VB 2008
- 15.3.12. Dialog Forms
- 15.3.13. Forms at Runtime
-
15.4. Controls
- 15.4.1. Control Tab Order
- 15.4.2. Dynamic Sizing and Positioning of Controls
- 15.4.3. FlowLayoutPanel Control
- 15.4.4. TableLayoutPanel Control
- 15.4.5. Panel and GroupBox Container Controls
- 15.4.6. Extender Providers
- 15.4.7. Advanced Capabilities for Data Entry
- 15.4.8. Validating Data Entry
- 15.4.9. Toolbars and the New ToolStrip Control
- 15.4.10. Menus
- 15.4.11. Common Dialogs
- 15.4.12. Drag and Drop
- 15.4.13. Summary of Standard Windows.Forms Controls
- 15.4.14. Retired Controls
- 15.4.15. Handling Groups of Related Controls
- 15.4.16. Adding Controls at Runtime
- 15.5. Other Handy Programming Tips
- 15.6. Summary
-
16. Windows Forms Advanced Features
- 16.1. Packaging Logic in Visual Controls
- 16.2. Custom Controls in Windows Forms
- 16.3. Inheriting from an Existing Control
- 16.4. The Control and UserControl Base Classes
- 16.5. A Composite UserControl
- 16.6. Building a Control from Scratch
- 16.7. Attaching an Icon for the Toolbox
- 16.8. Embedding Controls in Other Controls
- 16.9. Summary
-
17. Windows Presentation Foundation
- 17.1. What, Where, Why, How — WPF Strategy
- 17.2. Raster Graphics and Vector Graphics
- 17.3. Should Your Next Windows Project Use WPF?
- 17.4. Creating a WPF Application
- 17.5. Summary
- 18. Integrating WPF and Windows Forms
-
19. Working with ASP.NET 3.5
-
19.1. The Goals of ASP.NET
- 19.1.1. Developer Productivity
- 19.1.2. Administration and Management
- 19.1.3. Performance and Scalability
- 19.1.4. The ASP.NET Compilation System
- 19.1.5. Health Monitoring for Your ASP.NET Applications
- 19.1.6. Reading and Writing Configuration Settings
- 19.1.7. Localization
- 19.1.8. Objects for Accessing Data
- 19.2. The IDE for Building ASP.NET 3.5 Pages
- 19.3. Building ASP.NET Applications
- 19.4. The ASP.NET Page Structure Options
- 19.5. ASP.NET 3.5 Page Directives
- 19.6. ASP.NET Page Events
- 19.7. ASP.NET Application Folders
- 19.8. Global.asax
- 19.9. ASP.NET Server Controls
- 19.10. Manipulating Pages and Server Controls with JavaScript
- 19.11. Summary
-
19.1. The Goals of ASP.NET
- 20. ASP.NET 3.5 Advanced Features
- 21. Silverlight Development
- 22. Visual Studio Tools for Office
- 23. Assemblies
-
24. Deployment
- 24.1. Application Deployment
- 24.2. New in Visual Studio 2008
- 24.3. Visual Studio Deployment Projects
- 24.4. Modifying the Deployment Project
-
24.5. Internet Deployment of Windows Applications
- 24.5.1. No-Touch Deployment
-
24.5.2. ClickOnce Deployment
- 24.5.2.1. Configuring an Application for ClickOnce
- 24.5.2.2. Online versus Locally Installed Applications
- 24.5.2.3. Deploying an Online Application
- 24.5.2.4. Deploying an Application That Is Available Offline
- 24.5.2.5. Files and Directories Produced by ClickOnce
- 24.5.2.6. Signing the Manifest
- 24.5.2.7. The Update Process
- 24.5.2.8. ClickOnce Configuration Options
- 24.5.2.9. The Bootstrapper
- 24.5.2.10. Manual Editing of ClickOnce Manifests
- 24.5.2.11. Rolling Back or Uninstalling ClickOnce Applications
- 24.5.2.12. ClickOnce versus Other Deployment Technologies
- 24.5.3. Custom Deployment Options
- 24.6. Summary
- 25. Working with Classic COM and Interfaces
- 26. Threading
- 27. Windows Workflow Foundation
-
28. XML Web Services
- 28.1. Introduction to Web Services
- 28.2. Early Architectural Designs
- 28.3. Building a Web Service
- 28.4. A Realistic Example
- 28.5. Overloading WebMethods
- 28.6. Caching Web Service Responses
- 28.7. SOAP Headers
- 28.8. Visual Basic and System.Web.Services
- 28.9. Architecting with Web Services
- 28.10. Security in Web Services
- 28.11. The Downside
- 28.12. Where We Go from Here
- 28.13. Summary
-
29. Remoting
- 29.1. Remoting Overview
- 29.2. Implementing Remoting
- 29.3. Summary
-
30. Enterprise Services
- 30.1. Transactions
-
30.2. Transactional Components
-
30.2.1. An Example of Transactions
- 30.2.1.1. Creating the Databases
- 30.2.1.2. Populating Your Databases
- 30.2.1.3. The Business Logic
- 30.2.1.4. Registering Your Component
- 30.2.1.5. Giving the Assembly a Strong Name
- 30.2.1.6. Registering with Component Services
- 30.2.1.7. The Component Services Console
- 30.2.1.8. Test Application
- 30.2.1.9. The Transaction Attribute
- 30.2.1.10. Invalid Data
- 30.2.1.11. When Something Goes Wrong
-
30.2.1. An Example of Transactions
- 30.3. Other Aspects of Transactions
- 30.4. Queued Components
- 30.5. Transactions and System.Transactions
- 30.6. Summary
- 31. Network Programming
- 32. Windows Communication Foundation
-
33. Windows Services
- 33.1. Example Windows Services
- 33.2. Characteristics of a Windows Service
- 33.3. Interacting with Windows Services
- 33.4. Creating a Windows Service
- 33.5. Creating a Windows Service in Visual Basic
- 33.6. Creating a Counter Monitor Service
- 33.7. Monitoring a Performance Counter
- 33.8. Communicating with the Service
- 33.9. Custom Commands
- 33.10. Passing Strings to a Service
-
33.11. Creating a File Watcher
- 33.11.1. Writing events using an Event Log
-
33.11.2. Creating a FileSystemWatcher
- 33.11.2.1. The FileSystemWatcher Component
- 33.11.2.2. The EnableRaisingEvents Property
- 33.11.2.3. The Path Property
- 33.11.2.4. The NotifyFilter Property
- 33.11.2.5. The Filter Property
- 33.11.2.6. The IncludeSubdirectories Property
- 33.11.2.7. Adding FileSystemWatcher Code to OnStart and OnStop
- 33.11.2.8. The EventLog Component
- 33.11.2.9. The Created Event
- 33.12. Debugging the Service
- 33.13. Summary
-
34. Visual Basic and the Internet
- 34.1. Downloading Internet Resources
- 34.2. Sockets
-
34.3. Using Internet Explorer in Your Applications
-
34.3.1. Windows Forms and HTML — no problem!
- 34.3.1.1. Allowing Simple Web Browsing in Your Windows Application
- 34.3.1.2. Launching Internet Explorer from Your Windows Application
- 34.3.1.3. Updating URLs and Page Titles
- 34.3.1.4. Creating a Toolbar
- 34.3.1.5. Showing Documents Using the WebBrowser Control
- 34.3.1.6. Printing Using the WebBrowser Control
-
34.3.1. Windows Forms and HTML — no problem!
- 34.4. Summary
-
A. The Visual Basic Compiler
- A.1. The vbc.exe.config File
- A.2. Simple Steps to Compilation
- A.3. Compiler Output
- A.4. Looking at the vbc.rsp File
- B. Visual Basic Power Packs Tools
- C. Visual Basic Resources
Product information
- Title: Professional Visual Basic® 2008
- Author(s):
- Release date: May 2008
- Publisher(s): Wrox
- ISBN: 9780470191361
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
Accessibility for Everyone
You make the web more inclusive for everyone, everywhere, when you design with accessibility in mind. …
video
Introduction to ChatGPT and OpenAI
OpenAI ChatGPT is a powerful language model that uses advanced ML techniques to generate human-like text …
audiobook
How to Do Nothing
A galvanizing critique of the forces vying for our attention-and our personal information-that redefines what we …