VB Training Course

The Graphics Network

Training and Development for Windows and the Web

01285 713297 ♦ info@tgn.co.uk

Writing Visual Basic Applications

This 5 day course covers the Visual Basic language and its use for developing Windows desktop applications with Windows Forms. A basic knowledge of programming is assumed, though not any particular language. We also offer alternative courses for those targetting other technologies such as ASP.Net or WPF.

The 5 day course costs £2950 in total for up to 6 students, plus VAT and the instructor's reasonable expenses. Each student beyond 6 would cost £25 for the additional course materials. If you are interested in this course, please contact us by email at enquiries@tgn.co.uk or by phone on +44 (0)1285 713297.

Course Outline:

Introduction

The .Net platform. The Common Language Runtime (CLR) and Intermediate Language. Visual Basic, its alternatives and variations. The Visual Basic environment. Introducing object orientation. Good practice.

Using Variables

Variable Types, Scope and Lifetime. Nullable types. Arrays.

Control Flow

If, For Next, Do While/Until, For Each, Select Case.

Structured Programming

Subroutines and functions. Argument passing mechanisms. Named and optional arguments. Public, Private and the use of modules.

Object Orientation

Software engineering and components. Classes, objects and the use of 'New'. Encapsulation. Namespaces and assemblies. Benefits of object orientation.

Inheritance

The use of 'Overridable' and 'Overrides'. Benefits of inheritance. Hiding and Shadows. Abstract classes. Constructors and initialization. Casting. Collection classes. Generics. Collection examples.

Interfaces

The benefits of interfaces. Interfaces vs classes. Defining and implementing an interface. Common interfaces.

Exception Handling

Comparison with 'Err' and 'On Error'. Try and Catch. Finally. Custom Exceptions.

Files, Streams and Networking

The .Net Stream architecture. Streams, Readers and Writers. Serialization and SOAP. The Socket and Tcp classes. Basic network communication. Clients and multithreaded servers.

A Windows Forms User Interface

Beginning a graphical application. Forms and properties. Forms and controls as classes and objects. Events. Handling user input. Control interaction and focus. Special events. Controls and methods. Designing and implementing menus. The standard control set. Validation techniques. Dialogs. Producing an elegant and foolproof user interface. MDI applications.

Enhancing Applications

Dynamic forms and controls. Timers, Dates, Times and Formatting. The Timer control - its importance, limitations and the Tick event. Using, manipulating and displaying dates and times. Date/Time pickers. Graphics and Printing. Simple output. The System.Drawing Namespace. Printing techniques.

Enhancing the User Interface

Form and control inheritance. Custom controls. Distributing controls.

Databases and ADO.Net

Connections, commands and readers. DataSets and adapters. Typed DataSets. DataSource controls. Data-aware controls and grids. Stored procedures and transactions. Designing and implementing multi-tier applications.

LINQ and Entity Framework

How LINQ works. Implicitly-typed variables and Lambda expressions. The LINQ syntax. Using LINQ with collections, databases and XML. The ADO.Net Entity Framework. Using LINQ with entities. Parallel LINQ (PLINQ).

XML

Introducing XML. XmlTextReader. Using the Document Object Model (DOM) and XMLDocument. XMLDataDocuments. Creating XML using XmlWriter. LINQ and the 'X' classes.

Advanced Language Features

Passing parameters ByVal and ByRef. Variable length parameter lists. Extension methods. Operator overloading. Dispose and Using. Delegates and multicast delegates. Calling Dlls and the Windows API (PInvoke).

The Dynamic Language Runtime

Supporting dynamic languages. ExpandoObject. DynamicObject. Office support.

Multitasking

Parallel execution. Parallel For and ForEach. Tasks, threads and the thread pool. Priorities and background threads. Background workers. Synchronization and monitors. Controlling tasks and threads. Starting and controlling processes.

Deployment

XCopy deployment. DLLs and the Global Assembly Cache (GAC). Signing. strong names and versioning. No-touch and click-once deployment.