Windows Forms with C#.Net Course Outline

Duration: 5 Days

Objectives
This course will enable delegates to develop Windows applications using Visual Studio 2005. This includes creating customised forms and controls. It will also cover the C# programming language, using the principles of object orientated programming. Delegates will be able to access data from a database and update this from a Windows form.

Audience
This workshop is intended for software developers who have a desire to learn more about specific technology areas in Windows application development.

Prerequisites
Before attending this workshop, students must:

  • Understanding of the basics of structured programming, including concepts such as flow control, variables and parameters, and function calls.
  • At least 3 months experience developing applications in either a graphical or non-graphical environment, or equivalent knowledge.

Module 1. Getting started with .Net

  • What is .Net?
  • Overview of the framework class libraries
  • Understanding the Common Language Runtime (CLR)
  • Compiling an application to a assembly
  • A tour of the Visual Studio 2005 IDE

Module 2. C# Language Fundamentals

  • Data Types
  • Variables
  • Constants
  • Strings
  • Statements
  • Expressions

Module 3. Branching

  • Conditional branching statements
  • Unconditional branching statements
  • Loops

Module 4. Operators

  • Assignment
  • Mathematical operators
  • Increment & decrement
  • Relational

Module 5. Strings

  • Creating strings
  • Manipulating strings
  • The StringBuilder class

Module 6. Debugging

  • Setting a breakpoint
  • Stepping through lines of code
  • The debugging windows
  • The call stack

Module 7. Throwing and Catching Exceptions

  • The throw statement
  • The try, catch and finally statements
  • How the call stack works
  • Exception class methods and properties

Module 8. Principle of Object Orientation

  • Creating models of systems
  • Classes & objects
  • Encapsulation, specialisation & polymorphism

Module 9. Classes and Objects

  • Defining classes
  • Creating class constructors
  • Static and instance members
  • Destroying objects

Module 10. Inside Methods

  • Overloading methods
  • Encapsulating data with properties
  • Returning multiple values

Module 11. Inheritance and Polymorphism

  • Specialisation and generalisation
  • Inheritance
  • Polymorphism
  • Abstract and sealed classes
  • The root class: object
  • Boxing and unboxing types

Module 12. Interfaces

  • Implementing and interface
  • Implementing more than one interface
  • Casting to an interface
  • Extending and interface

Module 13. Delegates and Events

  • Using delegates
  • Using events

Module 14. Generics

  • Type parameter for classes and methods
  • Limit generic classes to hold only certain types of data
  • Generic collections

Module 15. Building Applications with Windows Forms

  • Why use windows forms?
  • Structure of windows forms
  • Windows forms class hierarchy
  • Using windows forms
  • Using controls
  • New controls in visual studio 2005
  • Click-once deployment

Module 16. Customizing Windows Forms and Controls

  • Methods of authoring controls for windows forms
  • Windows forms inheritance
  • Creating the base form
  • Creating the inherited form
  • Creating custom controls

Module 17. Data Access

  • List the benefits of ADO.NET
  • Create applications by using ADO.NET
  • List the main ADO.NET objects and their functions
  • Use Visual Studio NET data designers and data binding
  • Explain how XML integrates with ADO.NET

Module 18. Performing Asynchronous Tasks by Using Multithreaded Techniques

  • Techniques for asynchronous programming
  • Load a bitmap into a windows forms application asynchronously.
  • Using multithreading to perform simultaneous operations
  • Using the background worker component
  • Synchronising data between threads

Download the Microsoft Powerpoint Presentation for this Course >>