Windows Forms 2.0 Programming Using C#

Duration: 5 Days | Price: Contact a Career Consultant for pricing

Students Will Learn:
  • .NET Framework Architecture
  • C# Language Syntax
  • Managing Run-time Exceptions
  • Using Windows Forms and Handling Events
  • Working with Controls
  • Designing and Using Dialogs
  • Interacting with Databases
  • Using Data Binding
  • File I/O
  • XML & Web Services

Description: This course provides students with hands on experience using Visual Studio to create desktop applications with the .NET 2.0 Framework using C#. This class provides a thorough introduction to the C# programming language, including coverage of the essentials of the C# programming language, built in data types, operators, control structures, classes and methods.

Students then learn how to leverage the power of the .NET Framework and Windows Forms to build graphical user interfaces for desktop applications. Students will learn how to build modal and modeless dialogs and work with a variety of .NET controls. Students also learn how to use ADO.NET to interact with data sources and display data.

Other topics include: error handling and debugging; using a .config file to control application configuration; developing and consuming web services; file I/O; using XML data with DataSets; and deploying windows forms applications. Comprehensive labs and exercises provide the students with experience creating and deploying windows desktop applications.

This course provides thorough coverage of the use of Windows Forms for desktop applications. Students requiring additional coverage of Web Forms or Windows Presentation Foundation should contact HOTT to discuss additional training available.

Students who are already familiar with the C# language syntax may want to take the 3-day Windows Forms 2.0 Programming for Experienced C# Programmers class instead.

Prerequisites: General programming knowledge. Knowledge of object-oriented programming concepts is helpful but not required. Knowledge of a C-based language is helpful but not required.

Windows Forms 2.0 Programming Using C# Course Overview:

Introduction to .NET
  • Overview of the .NET Framework
  • How .NET is Different from Traditional Programming
  • Common Language Runtime (CLR)
  • Common Language Specification (CLS)
  • Common Type System (CTS)
  • .NET Assemblies
  • Microsoft Intermediate Language (CIL)
  • .NET Namespaces
  • .NET Framework Class Library
  Introduction to Visual Studio
  • Setting Profiles
  • Creating a Project
  • Using the Code Editor
  • Setting Project Properties
  • Adding References
  • Compiling a Program
  • Running a Program
  • Debugging a Program
  • Using the MSDN (Help)
Language Fundamentals
  • C# Program Structure
  • Defining Namespaces
  • Understanding C# Data Types
  • Defining Variables and Constants
  • Comparing Value Types versus Reference Types
  • Working with Operators and Expressions
  • Performing Type Conversions
  • Using Console I/O
  • Formatting Numbers, Date and Times
  Conditionals and Looping
  • if/else
  • switch
  • while and do/while
  • for
  • foreach
Functions and Parameters
  • Defining Static and Instance Functions
  • Passing Parameters by value and by reference
  • Overloading Functions
  • Using Variable Length Parameter Lists
  Exception Handling
  • What are Exceptions?
  • .NET Exception Hierarchy
  • Catching Exceptions
  • Throwing Exceptions
  • Managing Resources with Finally
  • Defining Custom Exception Types
Collections
  • Defining and Using Arrays
  • Understanding System.Array
  • Using .NET Collections
  • Working with ArrayLists and Hastables
  • Using .NET Generic Collections
  • Working with Lists and Dictionaries
  Object-Oriented Programming
  • Overview of Object-Oriented Programming
  • Defining and using Structures
  • Defining and using Enumerations
  • Understanding System.Enum
  • Defining and using Classes
  • Extending .NET Classes via Inheritance
  • Defining and Implementing Interfaces
  • Understanding the Role of Interfaces in .NET
Windows Forms 2.0 Features
  • Overview of Windows Forms 2.0 Applications
  • Working with Properties and Methods
  • Using a .config File
  Creating Windows Forms Applications
  • Using the Windows Forms Designer
  • Understanding the Life-cycle of a Windows Form
  • Handling Form Events
  • Using the MessageBox Class
Using Controls
  • Overview of Controls
  • Showing/Hiding Controls
  • Setting Focus to a Control
  • Working with Text Controls
  • Working with Button Controls
  • Working with Selection Controls
  • Working with List Controls
  • Working with Image Controls
  • Working with the Up/Down Conrols
  • Using the ErrorProvider and ToolTipProvider Controls
  Handling Events
  • Understanding the Event Driven Programming Model
  • Writing Event Handlers
  • Sharing Event Handlers between Events
ADO.NET
  • Understanding the ADO.NET Object Model
  • Connected vs. Disconnected Access
  • Using a Connection to Connect to a Data Source
  • Using a Command to Execute Queries and Stored Procedures
  • Using a DataReader to Work with Cursors
  • Using the DataSet with Disconnected Data
  • Using DataAdapters with DataSets
  Using XML
  • Understanding XML and XML Schemas
  • Reading XML Data with a DataSet
  • Writing XML Data with a DataSet
Data Binding in .NET 2.0
  • Understanding ADO.NET Data Binding
  • Binding to Simple and Complex Controls
  • Manually Binding Controls
  • Using the BindingSource Control
  • Using the BindingNavigator Control
  • Using the DataGridView Control
  Working with Dialogs
  • Using the Common Dialogs
  • Comparing Modal and Modeless Dialogs
  • Working with DialogResults
  • Displaying Modal Dialogs
  • Retrieving Data from Modal Dialogs
  • Displaying Modeless Dialogs
  • Moving Data from Modeless Dialogs
Working with Menus, Toolbars and Status Bars
  • Building Menus with the MenuStrip Control
  • Using the ToolStrip Control with Toolbars
  • Displaying Data using the StatusStrip Control
  Working with Files and Directories
  • Overview of the System.IO Namespace
  • Examining with File and Directory Attributes
  • Working with Files and Directories
  • Reading Files
  • Writing Files
Introduction to Web Services
  • Overview of Web Services
  • Creating a Web Service
  • Using WSDL and Proxy Classes
  • Consuming a Web Service
  Deploying .NET Applications
  • Overview of .NET 2.0 Deployment Options
  • Using XCOPY
  • Using Setup Projects
  • Using Click-Once Deployment

Student Testimonials

"This course was very helpful for me. I don't regularly code in C# but will be supporting and managing a future web service system written in C#. I now understand the structure of C# and feel confident that I'll be able to do my job."
D.M., RI Department of Environmental Management


"Wow! I learned a lot about the way to organize, code, and problem solve. The experience was invaluable. Thank you."
– L.B., Garfield Heights School System


Hands On Technology Transfer, Inc.
The Old Post House
91 Heath Road
Weybridge Surrey
KT13 8TS
Phone: 0870 063 2964

Copyright© Hands On Technology Transfer, Inc.