Skip to main content

Instructor-led training

Windows Forms Using C# Training in Oak Park, Michigan

This five-day course provides a practical, hands-on introduction to GUI development using Windows Forms and C#.

What you'll learn

This five-day course provides a practical, hands-on introduction to GUI development using Windows Forms and C#. The course introduces database programming in Windows, including use of Language Integrated Query (LINQ). The course covers powerful newer Windows Forms features, such as controls, data binding, and ClickOnce deployment for creating smart client applications. It covers interoperability with the next-generation Windows client framework, Windows Presentation Foundation (WPF).

Private Training for Teams

This course is offered as private, instructor-led training for organizations, onsite in Oak Park, Michigan or live online. Dates, delivery format, and course content are arranged around your team's requirements.

This course is not currently scheduled as a public class for individual enrollment.

Request Group Training

Prerequisites

Experience programming the .NET Framework using C#.

Course Outline

1. Introduction to Windows Forms
What Are Windows Forms?
Windows Forms Class Hierarchy
Building a Form
The Application Class
Trapping Events
Buttons
Labels and Textbox Controls
 
2. Visual Studio and the Forms Designer
Using the Forms Designer
Code Generated by Forms Designer
Adding Event Handlers
Creating Attractive Forms
Creating Easy To Use Forms
 
3. Using Controls
Checkbox, Radio Button, and Group Box
Numeric Up/Down
Trackbar
Progress
MonthCalendar
DateTimePicker
 
4. List Controls
Listbox and Combo box
DomainUpDown
ListView
Storing Objects in List Controls
 
5. Working with Dialogs
Modal vs. Modeless Dialogs
Message Boxes
Common Dialogs
Creating a Modal Dialog
Configuring the Dialog Result
Access Data from the Dialog
Validating Data
Error Provider Control
Modal Dialogs
Creating a Modeless Dialog
 
6. Menus, Toolbars and Status Bars
Main Menus
Context Menus
Building a Status Bar
Building a Toolbar
Using the Timer Control
 
7. Advanced Windows Forms Topics
Parent/Child Relationships
Owner/Owned Relationships
Top-Most Forms
Programming the Clipboard
Visual Inheritance
BackgroundWorker Component
ClickOnce Deployment
 
8. Using Advanced Controls
Panel
TreeView
TabControl
SplitContainer
WebBrowser
 
9. Resources
Image Resources
Resource Files
String Resources
Working with Resources in Visual Studio
Resource Managers
Cultures and Internationalization
Building Localizable Forms
 
10. Applications and Settings
Application Class
Processing and Filtering Windows Messages
Application Lifetime and Events
Configuration Files
Application Settings
Windows Registry
 
11. Data Access
ADO.NET Overview
.NET Data Providers
Using LocalDB
DataReaders
Data Sets
Data Tables
Data Views
Interacting with XML Data
Language Integrated Query (LINQ)
Bridging Objects and Data
Using Object Relational Designer
Filtering, Ordering and Aggregation
Inserts, Deletes and Updates
 
12. Data Binding
Data Binding Concept
Binding to a Control
Binding to a List
DataGrid and DataView
BindingSource
DataGridView
 
13. Windows Forms and WPF Interoperation
Windows Presentation Foundation
Extensible Application Markup Language (XAML)
Mixing Forms and WPF Windows
Mixing Controls
 
Appendix A. Learning Resources

What makes Windows Forms hard to master

The C# is rarely the obstacle. The difficulty is the event-driven model: the framework owns the message loop, and your code runs only when a control raises an event. The syllabus builds on that in layers.

  • Forms and the designer (modules 1-2). The Application class, the form class hierarchy and event trapping come first. Then comes Code Generated by Forms Designer. A common mistake is treating the generated code as freely editable. Hand edits to it can be overwritten or can break the designer.
  • Controls and dialogs (modules 3-6). The list controls (ListBox, ComboBox, ListView) are covered along with storing objects in them. The dialog material separates modal from modeless dialogs, configuring the dialog result, passing data back, and validation with the ErrorProvider control. Dialog lifetime and data hand-off cause more bugs than the controls themselves.
  • Application structure (modules 7-10). Topics include owner/owned forms, visual inheritance, the BackgroundWorker component, ClickOnce deployment, resources and localizable forms, and application settings. Windows message filtering and the application lifetime events are also covered. With BackgroundWorker, the usual pitfall is touching controls from the wrong thread.
  • Data (modules 11-12). ADO.NET DataReaders and DataSets/DataTables are covered alongside LINQ, including filtering, ordering, aggregation and updates. The binding material covers BindingSource and DataGridView. Two ideas trip people up: connected versus disconnected data, and LINQ's deferred execution. A query does not run where it is written, but where its results are enumerated.
  • WPF interoperation (module 13). XAML, hosting WPF content in a Windows Forms application, and the reverse.

Who it suits and what to take around it

The course targets developers who already write C# and need to build or maintain desktop client applications. The stated prerequisite is experience programming the .NET Framework with C#. It also suits training managers whose teams support existing Windows Forms line-of-business tools.

If your team's C# is rusty, .NET Framework Using C# covers the language and class library skills the forms and data modules build on. If data access is the main goal, ADO .NET Using C# goes deeper than the single data module here. See also the .NET courses and learning guide.

Organizations working on a particular .NET or Visual Studio release can ask about private training tailored to the versions they use. Request a training proposal.

Where these skills apply

The scenarios below are illustrations of how the course material can be applied. They are not descriptions of specific organizations or of the course's lab exercises.

These scenarios are examples of how the syllabus topics combine.

  • A data-entry tool. A team might build an order-maintenance screen. A DataGridView bound through a BindingSource shows records. A modal dialog edits one record and returns its result. ErrorProvider flags invalid fields, and LINQ filters and aggregates the data behind the grid.
  • A localized internal utility. A team might move captions and messages into string and image resources and build localizable forms. Application settings and configuration files would hold per-user preferences, and a status bar and timer would report progress. This uses the resources, cultures and settings modules.
  • Incremental modernization. A team maintaining an existing Windows Forms application might add one new screen as a WPF window or host a WPF control inside a form. ClickOnce could then deploy updates. This maps to the interoperation and deployment topics.

AI coding assistants with Windows Forms

AI coding assistants are useful for the repetitive parts: event-handler skeletons, input validation logic, LINQ queries over in-memory lists, ADO.NET boilerplate and resource-file entries. They also draft explanations of unfamiliar designer-generated code quickly.

They tend to fail in specific places:

  • Designer interplay. Generated code may be placed in the designer-owned file or may not match what the Forms Designer expects.
  • Threading. Suggestions may update controls from a background thread, or mix newer asynchronous patterns into code built around the BackgroundWorker component.
  • LINQ. Deferred execution can hide a query that runs several times or after the connection has closed.
  • API availability. A suggested method or control may not exist in the framework version your project targets.
  • Binding and dialog flow. Wiring a BindingSource or reading a dialog result often looks right but behaves wrongly at runtime.

To verify, build against your actual target framework and open every changed form in the designer. Exercise dialogs, validation and cancel paths by hand. Check that queries run when you expect, and test background work for cross-thread errors.

Frequently asked questions

What level is this course?

It is a general-level, five-day course for developers who already program in C#. It starts with building a basic form and progresses to data access, data binding and WPF interoperation.

What do I need to know beforehand?

Experience programming the .NET Framework using C#. You do not need prior Windows Forms experience, since the course starts with the form class hierarchy and the Application class.

What does the course cover?

It covers controls, list controls, dialogs, menus, toolbars and status bars, and advanced topics such as BackgroundWorker and ClickOnce deployment. It also covers resources and localization, application settings, ADO.NET, LINQ, data binding with DataGridView, and Windows Forms/WPF interoperation.

Can the course be delivered privately for our team?

Yes. HSG delivers private training for organizations either onsite at your location or live online.

Can the content be customized?

Private training can be tailored to your needs, including the technology versions your organization uses. Use the training proposal request to describe your team's applications and target versions.

Training locations

Windows Forms Using C# training across the U.S. and beyond.

We provide private Windows Forms Using C# training for organizations, onsite at your location or live online, throughout the United States and internationally.

View all Windows Forms Using C# training locations

Train your team with HSG

Private, instructor-led training customized for your organization.

  • Onsite or live online delivery
  • Customized curriculum
  • For a single employee or an entire team
  • Flexible scheduling
  • Experienced instructors
Request Group Training

Questions? Call us at 303.377.6176
or email info@hartmannsoftware.com

Ready to train your team?

Let's customize this training for your organization.

Tell us about your employees, your goals, and your preferred schedule. We'll prepare a training proposal covering scope, delivery format, and pricing.