new courses
for 2010

check out our new linux, c#, ruby on rails and asp.net 3.5 courses, with quality material and leading instructors. stay up to date with the very latest in web development technology.

Programming with Visual Basic 2008 - 2 day course

18-19 August 2010LondonClick here to book
8-9 November 2010LondonClick here to book

Can't see a suitable date or location?
Click here to register your interest in this course and we will
keep you informed when any new dates are added.

Synopsis

This class is an introduction to the Visual Basic 2008 (formerly VB.NET) programming language. It will cover the concepts and building blocks of the Visual Basic programming language, such as how .NET is different from traditional programming, defining variables, control structures, operators, classes and methods. It will provide delegates with a skill base from which they can go on to develop .NET applications on either the Windows Forms or ASP.NET platforms.

Duration

2 days

Cost

£495

Prerequisites

None

Detailed course contents

Introduction to .NET

  • What is .NET?
  • .NET Building Blocks
  • Common Language Runtime (CLR)
  • Framework Class Library (FCL)
  • Base Class Library (BCL)
  • Common Type System (CTS)
  • Common Language System (CLS)

Introduction to Visual Basic 2008

  • What is Visual Basic.NET?
  • What is Visual Basic 2008 used for?
  • Features of Visual Basic 2008
  • What does Visual Basic 2008 look like?
  • Visual Basic 2008 IDE

Getting started

  • Creating a project
  • The Main procedure
  • Visual Basic 2008 basics
  • Displaying the User Messages on the Screen
  • Adding comments
  • Compiling and running the program from the command line
  • Compiling and running the program using the Visual Basic 2008 IDE

Variables

  • Variables in Visual Basic 2008
  • Declaring variables
  • Variable name rules
  • Visual Basic 2008 keywords
  • Assigning a value to a variable
  • Strings
  • Character data types
  • Numeric data types
  • Signed and Unsigned
  • Byte
  • Signed Byte
  • Short Integers
  • Unsigned Short Integers
  • Signed Integers
  • Unsigned Integers
  • Long Integers
  • Unsigned Long Integers
  • Real Numbers: Single
  • Double-Precision Numbers
  • Decimal
  • The Boolean Data Type
  • The Date Data Type
  • Assigning a Date value
  • Default variable values
  • Type inference
  • Constants
  • Visual Basic 2008 / .NET Data Types
  • VB2008 / .NET Data Type equivalents

Data type conversion, properties and methods

  • About data type properties and methods
  • String immutability
  • String.Format
  • Numeric formatting in String.Format
  • Common Format Specifiers
  • Console.WriteLine equivalents
  • String methods: PadLeft and PadRight
  • String method: Substring
  • More String methods
  • Date properties
  • Shared Date properties
  • Date methods
  • Converting Date to a String
  • Date format masks
  • Converting numeric data to string
  • Implicit and explicit conversion
  • Using Parse to convert data types
  • Using TryParse to convert data types
  • System.Convert

Operators

  • Visual Basic 2008 operators
  • The + operator
  • The & operator
  • The -, * and / operators
  • The += addition assignment operator
  • The -=, *= and /= operators
  • Logical operators: =
  • Logical operators: <>
  • Logical operators: < and >
  • Logical operators: <= and >=
  • Logical ‘and’ Conjunction: And
  • Conditional ‘and’ Conjunction: AndAlso
  • The Binary ‘or’ operator: Or
  • The Conditional ‘or’ operator: OrElse
  • The exclusive ‘or’ operator: Xor
  • Conditional logic
  • Conditional control: If / Then
  • Conditional control: If / Then cont.
  • Using If on a single line
  • Conditional control: Else
  • If .. ElseIf
  • If .. ElseIf .. Else
  • The Ternary If Operator
  • Case Switches
  • GoTo

Loops

  • The While loop
  • While cont.
  • Do…While
  • Do...Until
  • The For..Next loop
  • Exiting out of a loop
  • Continuing a loop

Procedures

  • Procedures of a class
  • Types of procedure
  • Sub procedures
  • Declaring a sub procedure
  • Procedure parameters
  • Specifying procedure parameters
  • Optional parameters
  • Overloading a sub procedure
  • Functions
  • What are functions?
  • Calling functions
  • Declaring a function
  • Returning a value from a function
  • Overloading a function

Introduction to Classes

  • Object oriented programming
  • Classes
  • Objects
  • Member variables
  • Creating a class
  • Creating a class in its own file
  • Creating an object
  • Assigning a value to an object
  • Accessing class members
  • Objects as parameters and return types
  • Reference types
  • Access modifiers
  • The Public access modifier
  • The Private access modifier

Properties

  • Encapsulation
  • Properties
  • Coding a Property
  • Implementing a Property
  • Accessing a property
  • Read only Properties
  • Write only Properties

Constructors

  • What are constructors?
  • Constructors with arguments
  • Calling a constructor
  • The default constructor
  • Constructor chaining
  • Shared constructors
  • Shared constructor execution
  • Declaring a shared constructor
  • Shared constructor rules

Destructors

  • What are destructors?
  • Destructors and memory management
  • Destructor procedure rules
  • When to use destructors?

Inheritance

  • Introduction to Inheritance
  • Examples of inheritance use
  • Deriving one class from another
  • Adding to a Derived Class
  • Overriding Members of the Base Class
  • The Object class
  • Preventing the overriding of a member
  • Calling Members of the Base Class
  • Multi-Level Hierarchies
  • The Protected access modifier
  • Constructors and Inheritance
  • Explicitly calling Base Class Constructors
  • Protected Constructors
  • Substituting derived objects for base class objects

Shared members and classes

  • Shared Members of a Class
  • Examples of shared behaviour
  • Declaring Shared Members
  • Referencing Shared Members

Sealed and Abstract classes

  • Preventing inheritance from a class
  • Preventing instantiation from a class
  • Creating an abstract class
  • Members of an abstract class

Polymorphism and Shadowing

  • Substituting a derived class for its parent
  • Polymorphism
  • Shadowing

Boxing and Unboxing

  • Boxing
  • Explicit Boxing
  • Unboxing

Arrays

  • Array Types
  • Declaring an Array Variable
  • Accessing the elements in an array
  • Declaring and populating an array variable
  • Changing the size of an array
  • Retrieving the length of an array
  • Using For Each to loop through an array

Interfaces

  • What is an interface?
  • Interface rules
  • Inheriting from an interface
  • Creating an interface
  • Procedures in an interface
  • Basing a class on an interface
  • Basing an interface on an interface
  • Multiple inheritance

Structures

  • What is a structure?
  • Declaring a structure
  • Contents of a structure
  • Structure procedures
  • Structure Variable Declaration
  • Uses of Structures
  • Structure field values
  • Structure constructors
  • Structures and inheritance

Indexers

  • What are Indexers?
  • Syntax: Declaring an Indexer
  • Using indexers
  • Overloaded Indexers

Error handling

  • Introduction to Exception Handling
  • Try .. Catch
  • Finally
  • The Exception Class
  • Catching the Exception instance
  • The Exception Message
  • Derived Exception Classes
  • FormatException
  • OverflowException
  • IndexOutOfRangeException
  • DivideByZeroException
  • Catching Multiple Exceptions
  • Exception Nesting
  • Throwing an Exception
  • Passing a message to the Exception class
  • Custom Exceptions
  • Defining Custom Exceptions
  • Throwing custom Exceptions

Enumerators

  • What are Enumerators?
  • When to use Enumerators?
  • Declaring enumerators
  • Enumerators cont.
  • Using enumerators

Namespaces and Modules

  • What is a namespace?
  • Accessing Members of a Namespace
  • Namespace Nesting
  • Importing a Namespace
  • Root namespaces
  • Modules

 

18-19 August 2010LondonClick here to book
8-9 November 2010LondonClick here to book

Can't see a suitable date or location?
Click here to register your interest in this course and we will
keep you informed when any new dates are added.

our courses
up to date, relevant, thorough


more about our courses

our services
leading professionals, teaching professionals


more about our courses

Share