Visual Basic.NET Unleashed is a complete book on the
fundamentals of programming with a fully object-oriented
language filled with new idioms and capabilities. In
addition to the fundamentals, this book covers:
- Free threading and multithreading
- Inheritance
- Virtual methods and shared methods
- Structured exception handling
- Event handling
- Encapsulation at the namespace level
- Web Services
- .NET Framework compatibility
Contents
Introduction.
I. INTRODUCING VISUAL BASIC
.NET.
1. Using the Unified Visual Studio IDE. User-Customizable
Profiles. Creating a Project. Building Projects. The Code
Behind the Form. Configuring IDE Options. Debugging in the
New IDE. An Overview of Project Templates. IntelliSense.
Using Views. Documentation.
2. Out with the Old, In with the New. File Extensions.
Namespaces. References. Option Statements. Data Types.
Variable Declarations. Operators. Type Conversion
Functions. Variable Scope Changes in VB .NET. Flow Control
Statements. Arrays and Collections. Structured Exception
Handling. Visual Basic .NET Handling of Reserved Words.
Compatibility Between VB6 and VB .NET.
3. Basic Programming in Visual Basic .NET. Declaring and Initializing
Variables. Working with Block-Level Scope. Static
Variables. Using Static Variables. Using Arrays. Working
with New Abstract Data Types. Shadow Variables. Functions
and Subroutines. Defining Structures. Using Objects.
Exception Handling.
4. Macros and Visual Studio Extensibility. Automating Repetitive
Tasks. Using the Macro Explorer. Exporting the Macro. Using
the Macro IDE. Creating a Macro Project. Managing Visual
Studio from the Command Window. Responding to IDE Events.
Customizing Visual Studio. Creating Add-Ins. Creating
Wizards. Visual Studio Integration Program (VSIP).
5. Subroutines, Functions, and Structures. Writing Procedures.
Defining Procedure Arguments. Working with Recursion.
Defining Structures. Using Enumerated Types.
II. ADVANCED OBJECT-ORIENTED
PROGRAMMING.
6. Reflection. Reflection Namespace.
Emitting Types at Runtime Using Reflection. Other Places
Reflection Is Used. Localization.
7. Creating Classes. Defining Classes.
Encapsulation and Information Hiding. Adding Field and
Property Members. Adding Methods to Classes. Adding Class
Events. Defining Nested Classes. Creating Instances of a
Class.
8. Adding Events. Understanding Events and
Event Handlers. Creating Event Handlers in the Windows Form
Designer. Creating Event Handlers in the Code Editor.
Creating Runtime Event Handlers. Creating Event Handlers in
the WebForms Designer. Declaring and Raising Events.
9. Understanding Delegates. Using the EventHandler
Delegate. Reviewing Delegate Members. Defining Delegates.
Passing Delegates as Arguments. Multicasting Delegates.
Using Delegates Across Project Boundaries.
10. Inheritance and Polymorphism. Inheritance Basics. What
Is Inheritance? Defining Classes That Must Be Subclassed.
Defining Classes That Cannot Be Subclassed. Polymorphism.
Dynamic Typecasting. Defining Interfaces.
11. Shared Members. Declaring Shared Fields.
Defining Shared Properties. Using Shared Methods. Defining
Shared Constructors. Implementing Factory Methods.
Overloading Shared Members. Raising Shared Events.
12. Defining Attributes. Understanding the Role of
Attributes. Annotating Types and Members. Viewing
Attributes with the MSIL Disassembler. Extracting
Attributes Using Reflection. Creating Custom Attributes.
Component Attributes. COM Interop Attributes.
III. USER INTERFACE
DESIGN.
13. Creating a Console Application. Console Application
Basics. Using the Console Class. Defining the FileSort
Demo. Console Application Namespaces. Multithreading a
Console Application. Debugging Console Applications.
Keeping Track of the File System.
14. Multithreaded Applications. Asynchronous Processing
without Threads. Lightweight Threading with Thread Pools.
Heavyweight Threading. Applying the ThreadStatic Attribute.
Multithreading in Windows Forms.
15. Using Windows Forms. Reviewing the Forms
Namespace. Reviewing the System.Drawing Namespace. Using
the Form Class. Custom Form Painting with GDI+.
16. Designing User Interfaces. Managing Control Layout.
Working with Menus. Advanced Form Techniques. What Do the
Component and Control Classes Do for Us? Adding Controls
Dynamically Creating Custom UserControls. Creating Custom
Controls.
17. Programming with GDI+. GDI+ Basics. Advanced
Drawing. Custom Drawing in Windows Forms. Graphics
Printing.
IV. BUILDING WEB SERVICES.
18. Using and Implementing Web Services. Web Services in Review.
Finding Web Services with UDDI. Calling Web Services.
Implementing Web Services. Choosing Web Access Methods.
Managing State Information. Handling and Throwing
Exceptions in Web Services. Debugging Web Services.
Compiling and Deploying Web Projects.
19. ASP.NET Web Programming. Web Forms. Using Request
and Response. ASP.NET and ADO.NET. Output Caching.
Performance Considerations. Rendering Controls. Dynamically
Adding Controls to a Page. Creating Custom Web
Controls.
20. Writing to the Event Log. Managing an Event Source.
Writing Events to an Existing Log. Writing to a Custom
Event Log. Getting the Contents of an Event Log. Clearing
an Event Log. Receiving Event Notifications. Using a Remote
Event Log. Using EventLogTraceListener.
Appendix A. VB6 Programming Element Changes in
VB.NET. Discontinued Programming
Elements. Declaration and Grammar Changes. Variable Scope
Changes. Changes to Procedure Declarations. Changes to
Properties. Changes to Array Bounds. Changes to Data Types.
Changes to Operators. Changes to Flow Control. Changes to
Classes and Interfaces. Replaced Programming Elements.
Programming Elements Supported Differently. Replace Variant
with Object.
Bibliography.
Index.