AquinasTraining.co.uk - training courses. Home  -  FAQ  -  Corporate Plans

Visual Basic .NET: Object Oriented Programming

VB05-OO      Course duration (days): 3
Talk to a Training Advisor
Tel. 0800 652 0202
Availability
Schedule available upon request within 24 hours.
Need help? Contact us now.

About this class

The course will provide a basis for programming object oriented applications using Visual Basic .NET 2005. The content is focussed on object creation, inheritance and interfaces, plus file IO, serialization and threading techniques. The course will also cover some of the new language features in .NET 2 such as generics.

Who will the lesson benefit?

Visual Basic .NET programmers who have basic language skills in Visual Basic .NET who which to develop their skills in object programming, using the latest Microsoft development technologies. Those delegates working towards MCPD: Windows Developer certification.

What prerequisites are required

Before attending this course, it is recommended that delegates:

  • Are able to manage a solution using the Visual Studio 2005 IDE and tools
  • Understand the Microsoft .NET Framework 2.0 and the Common Language Runtime
  • Have application programming experience with a .NET Framework 2.0 compliant language (C# or VB.NET)
  • Know how to make assemblies available to other applications
  • Have a basic knowledge of XML including XML syntax.
  • Home About us Services Certification Special offers News Contact us
  • Privacy statement Terms and conditions Site Map

Contents of this class

  • Define Methods/Properties Local to the New Class
  • Polymorphism and Virtual Methods8
  • Protected
  • Inheritance and Constructors
  • Inheriting from System.Object
  • Overriding ToString
  • Overloading Equals
  • Use of the CType Function
  • Form Inheritance

Events and Delegates

  • Events
  • Handling Events
  • Handling Multiple Events
  • The WithEvents Keyword
  • Using Class Events
  • Declaring the Event
  • Raising the Event
  • Responding to the Event
  • Delegates
  • Delegate Implementation
  • Multicasting Delegates

Object Lifetime

  • Garbage Collection
  • Object Destructors
  • Points to remember:
  • Implementing a Dispose Method
  • Good working practices: Using Try-Finally
  • Good working practices: Using Block
  • Releasing COM Object

Interfaces

  • Designing our own Interfaces
  • Defining the IUserProfile Interface
  • Implementing the IUserProfile Interface
  • Using the Interface
  • Overloading Methods
  • Implementing Multiple Interfaces
  • Interface Inheritance
  • An example of implementing a .NET Framework Interface
  • IComparable
  • When to Use Interfaces and when to Use Inheritance?

Generics

  • Generics in VB.NET
  • Understanding Generics
  • Avoiding type Casting
  • Advantages of Generics
  • Terms used in Generics
  • Applying Constraints to a Generic Type

The My Namespace

  • What's in My Namespace?
  • Reading a Text File
  • FileSystem Actions
  • Playing Sounds
  • Network Settings
  • My.User
  • Web Services
  • Retrieve the Application Path
  • Checking Disk Drive Space
  • Clearing the Clipboard
  • Writing to the Application Log

Regular Expressions

  • Regular Expressions
  • The RegEx Object
  • Constructing the RegEx Class
  • Using IsMatch
  • Using Match & MatchCollection
  • Using Replace
  • Using Split
  • Using ToString

Files, Directories and Streams

  • The File System Object Model
  • Managing Files with System.IO
  • Copying and Deleting Files
  • File Attributes Description
  • Working with Directories
  • A directory listing utility
  • Working with Paths
  • I/O with Files

Assemblies and Threading

  • Project Assemblies
  • Assembly Contents
  • The Assembly Manifest
  • The Cryptographic Hash
  • What is the Assembly Cache?
  • Assembly Accessibility
  • Creating a Private Assembly
  • Creating a Shared Assembly
  • Signing an Assembly
  • Sharing our Code
  • Using a Shared Assembly
  • Threading and Asynchronous Programming
  • Working with Threads
  • Controlling the Thread
  • Passing Data in Multithreaded Procedures
  • Synchronizing Threads
  • The BackgroundWorker Component
  • Running a Process Asynchronously
  • Retrieving the State after Completion
  • Notifying progress to the UI
  • Supporting Cancellation
  • Serialization

Serialization in the .NET Framework

  • The System.Runtime.Serialization Namespace
  • Binary vs. XML Serialization
  • Basic Serialization vs. Custom Serialization
  • Using the IXmlSerializable Interface
  • How the IXmlSerializable Methods Work
  • Implementing the IXmlSerializable Interface
  • Reading and Writing the XML
  • Reading Serialized Data through a Web Service

PInvoke and COM Interop

  • Using PInvoke in VB.NET
  • Using the Declare Statement
  • Using DllImport
  • Parameter Type-Mapping
  • COM Interoperability in .NET
  • Using a .NET Server Component from COM Clients
  • Writing and Compiling the Managed Code
  • Generate a Type Library and Register the Assembly
  • Installing the Assembly
  • Writing and Compiling the Unmanaged Code
  • Using a COM Component in a .NET Client
  • Write and Compile the Unmanaged Code
  • Importing the Type Library
  • Install the Assembly in the Global Assembly Cache (optional)
  • Write .NET Client Code with Reference to the Assembly
  • v1.0