new courses
for 2012

check out our sql, c#, html and asp.net courses, with quality material and leading instructors. stay up to date with the very latest in web development technology.

Developing Windows Forms With C# .NET - 3 day course

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 3-day course provides a comprehensive introduction to creating Windows Forms applications using C#, Visual Studio, and the .NET framework. You will learn how to create applications that provide a rich graphical interface employing a wide range of controls and multiple forms. You'll learn how to access data within the file system and to use data binding to automatically populate controls from data sources including SQL Server databases. Finally, the course looks at the options for deploying applications onto target systems.

Approximately 50% of the course time is spent in "follow-along" activities and hands-on exercises. Note that Impartica provides a PC for each student; we do not ask attendees to share.

The course targets versions 3.5 and 4 of the .NET framework.

Duration

3 days

Cost

£895 plus VAT

Prerequisites

A reasonable knowledge of the C# language is assumed. Impartica's 2-day course "Programming with C#" provides an ideal background and the courses may be run back-to-back to provide a week-long event.

Detailed course contents

Chapter 1: Introducing Windows Forms

  • WinForms in context
    • Windows Forms
    • ASP.NET
    • Windows Presentation Foundation
  • What is a form?
    • Properties of a form
  • Three simple controls to get you started
    • TextBox, Button and Label
  • Naming Conventions
  • Adding controls to a form
  • Events and event handlers
  • Guided tour: Designer-generated and programmer-generated code
  • Controlling Layout
    • Anchoring and Docking
  • Default event handlers
  • Handling other event types
  • Preventing a form from closing
  • The life-cycle of a form
  • Message Boxes

Chapter 2: Basic Controls

  • Label
  • TextBox
    • Processing text from text boxes
    • Auto-completion
  • RichTextBox
  • MaskedTextBox
  • Button
  • CheckBox
  • RadioButton
  • Properties common to all visual controls
  • Timer
  • Navigation techniques
    • Setting the tab order
    • Defining shortcut keys

Chapter 3: Advanced Controls

  • ListBox
    • Managing a ListBox Item collection
    • ListBox data binding
    • Single-selection and multi-selection list boxes
  • ComboBox
  • CheckedListBox
  • ListView
    • Defining a multi-column "details" view
  • TreeView
    • Populating a treeview
  • ImageList
    • Populating an image list
    • Associating an image with a control
  • PictureBox
  • Date Controls
  • Tooltip
  • Error Provider
  • FileSystemwatcher

Chapter 4: Layout and Container Controls

  • Panel
  • GroupBox
  • SplitContainer
  • TabControl
  • TableLayoutPanel
  • Constructing an array of controls
  • FlowLayoutPanel
  • Menus, toolbars and status strips
    • MenuStrip and menu items
    • Menu shortcut keys
    • Context menus
    • ToolStrip
    • StatusStrip

Chapter 5: Using multiple forms

  • Modal vs Modeless forms
  • Creating a Modal form
    • Retreiving data from the form
  • Creating a Modeless form
    • Calling back to the "main" form
  • Standard Dialogs
    • OpenFileDialog
    • SaveFileDialog
    • ColorDialog
    • FontDialog
    • "About" boxes

Chapter 6: File I/O

  • Static and instance I/O classes
    • The DirectoryInfo class
    • The FileInfo class
  • Reading and Writing Files
    • FileStream
    • StreamReader
    • StreamWriter
    • BinaryReader
    • BinaryWriter
  • System.IO Exceptions

Chapter 7: Data Binding

  • Binding a listbox to an object collection
  • Binding single-value controls
  • Navigating between rows
  • Introducing the DataGridView
  • Binding to an object collection
    • Two-way data binding
    • The BindingSource and BindingNavigator
    • Binding control relationships
  • Binding to a DataSet or DataTable
    • Weak vs strong typing
    • ADO.NET class relationships
    • Binding to a weakly-typed dataset
  • Using a wizard-generated dataset
    • DataSet Designer
    • Drag-and-drop data binding
  • Customising the DataGridView
    • Setting properties
    • Column editor
    • Cell Styles

Chapter 8: Deployment

  • XCOPY deployment
    • .NET Framework Availability
  • Click-once deployment
    • Choosing a publish location
    • Update policy
    • Publishing options and pre-requisites
    • Click-once pros and cons
  • Setup and deployment (.msi) projects
    • Setup project editors
    • Configuring the target file system
    • Creating shortcuts
    • Deploying and installing the application


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 services
leading professionals, teaching professionals


more about our courses

Share