  
                    
|
| |
 |
ADVANCED .NET FRAMEWORK 2.0 USING VISUAL BASIC 2005: VOLUME 2
| Course Description |
|
In this volume, you’ll learn about implementing service processes and application domains in your .NET applications using the System and ServiceProcess namespaces. You’ll see how to take advantage of multi-threading to create fast and efficient processes through the Threading namespace. You’ll learn how to internationalize your .NET application by using the globalization classes. Enhance your user interface with the System.Drawing and System.Text namespaces.
Course Length: 3 Days
Course Tuition: $1190 (US)
|
| Prerequisites |
|
| Some programming background, in addition to experience with Visual Studio 2005 and version 2.0 of the .NET Framework, in either Visual Basic or C#.
|
• Creating Multithreaded Applications
Using Threaded
Using the Thread Class
The ThreadStart and Parameterized ThreadStart Delegates
Using the Join() Method
Four Ways to Start a Thread
Using the ThreadPool Class
Performing Reverse DNS Lookups by Using the Thread Pool
Using the Timer Class
Modifying the User Interface from a Thread
Using the Invoke() Method of a Form
Using the BackgroundWorker Component
Calling an Asynchronous Method
The ThreadState Enumeration
The ThreadPriority Enumeration
Avoiding Deadlocks (aka Deadly Embraces)
Avoiding Race Conditions
Thread Safe Code and Locking
Using the Monitor Class
Using the SyncLock Statement
Using the Interlocked Class
Using the ReaderWriterLock Class
Synchronizing Threads
Using the AutoResetEvent Class
Using the ManualResetEvent Class
Using the Mutex Class
Using the Semaphore Class
Using the RegisterWaitForSingleObject Method
Using an ExecutionContext Object
Controlling the Flow of Permissions
Using the ExecutionContext.Run() Method
• Text Manipulation
Using the StringBuilder Class
StringBuilder Basics
Using StringBuilder vs. Strings
Parsing Strings with Regular Expressions
Regular Expression Patterns
Using the Match and Group Objects
Using the MatchCollection Object
Understanding Captures
Using Encoding
Discovering with Encodings .NET Supports
Encoding Text
Decoding Text
Handling Fallbacks
• Using Culture Information
The Basics of Cultures in .NET
Types of Cultures
The CultureInfo Class
Culture Names
Using a CultureInfo Object
Parsing a Date Using a CultureInfo Object
Parsing a Number Using a CultureInfo Object
Formatting a Date and Time Using a DateTimeFormatInfo Object
Formatting a Number Using a NumberFormatInfo Object
Finding Other Information from FormatInfo Objects
Using RegionInfo Objects
Comparing Strings Using a CompareInfo Object
Sorting a Collection Using a CompareInfo Object
Using the CultureAndRegion InfoBuilder Class
• Windows Services
An Introduction to Windows Services
Viewing the Installed Services from Visual Studio
Installing and Uninstalling Windows Services from Visual Studio
Creation a Windows Service
Choosing an Account to Run the Service
Installing the Service
Adding Functionality to the Service
Creating a Test Harness Program
Debugging the Service
Using the ServiceController Component
Checking Permissions
Overriding Other Methods in the Service
Sending a Command to a Windows Service
Enumerating the Services on a Machine
• Sending E-Mail with SMTP
Simple Mail Transfer Protocol (SMTP)
Specifying the SMTP Server
Using the SmtpClient Class
Encoding
Using the Mail Message Class
Using the MailAddress Class
Adding Message Recipients
Adding Attachments
Handling SMTP Exceptions
Sending Messages Asynchronously
Sending HTML E-Mail Messages
Adding Alternate Views
Checking E-Mail Security
Configuring Credentials
• Using Platform Invoke
Making Platform Invoke Calls
Identifying Entry Points
Creating a Class
Defining Prototypes
Specifying the Library Name
Specifying the Entry Point Name
Specifying the CharSet
Specifying the Type of Procedure
Specifying the Method Name
Specifying the Parameters
Specifying the Return Type
Calling the DLL Entry Point
Using Constants
Using Enums
Returning Strings from a Platform Invoke Call
Passing Structures to a Platform Invoke Call
Using the StructLayout Attribute
Byte Aligning Structures
Implementing Callback Procedures
Handling Errors from Unmanaged Code
Marshaling Data
Blittable Types
Using the In and Out Attributes
|
• COM Interop
Com Interop
Registering a COM Component
Unregistering a COM Component
Creating a Runtime Callable Wrapper
Creating an RCW in Visual Studio
Creating a RCW by Using TIbimp.exe
Using a Primary Interop Assembly
Using a COM Component from .NET
Driving Excel from .NET
Calling .NET from COM
Using the ComVisible Attribute
Creating COM Friendly Classes in .NET
Using the TypeLibConverter Class
Using the CovertAssemblyToTypeLib() Method
Using the ConvertTypeLibToAssembly() Method
• Reflection
Reflection in .NET
Using the Assembly Class
Getting References to the Currently Executing Assemblies
Getting References to Other Assemblies
Using Assembly Attributes
Retrieving Assembly Attributes
Creating a New Custom Attribute
Retrieving Information about an Assembly
The Reflection Object Hierarchy
Enumerating all the Information in an Assembly
Performing Late Binding
Calling a Shared Method Using Late Binding
Calling an Instance Method Using Late Binding
Creating Code at Runtime
• Drawing Graphics
Drawing Graphics Using GDI+
Essential Structures
The Point and PointF Structures
The Size and SizeF Structures
The Rectangle and RectangleF Structures
The Color Structure
The SystemColors Class
The OnPaint() Method
The OnPaintBackground() Method
Using the Graphics Class
The Pen Class
SystemPens Class
The Brush Class
The SolidBrush Class
The TextureBrush Class
The HatchBrush Class
The LinearGradientBrush Class
The PathGradientBrush Class
Image, Bitmap, and Metafile Classes
The Font Class
The FontFamily Class
The SystemFonts Class
Drawing Text Using a Font
Drawing Text Using the StringFormat Class
Using the ImageAnimator Class
Using BufferedGraphics
The Icon Class
The SystemIcons Class
The Converter Classes
The ColorConverter Class
The FontConverter Class
The ImageConverter Class
The IconConverter Class
The PointConverter Class
The RectangleConverter Class
The SizeConverter Class
The ColorTranslator Class
Using Regions
• Application Domains
Using Application Domains
Creating an Application Domain
Configuring an Application Domain
Loading Assemblies into an Application Domain
Unloading an Application Domain
Practical Example of Using Application Domains
The Eight Queens Problem
The Knight’s Tour Problem
The Towers of Hanoi Problem
Using Application Domains to Run in a Safe and Secure Environment
Using an Application Domain to Stop an Application
Using Evidence
Assigning Evidence to the Application Domain
Contact us for course schedules or more
information.
|
|
 |
|
|
|
|