WinForms

WinForms course: from the first form to a tested desktop application The project file, the controls, layout and DPI, events, menus and dialogs, data binding, Model-View-Presenter with tests, threads, drawing, publishing and three capstones. Open

Windows Forms is the desktop UI stack that ships with .NET: a form, controls on it, and a message loop that turns a click into an event. It is old, it is still supported on .NET 10, and it is the shortest path from a C# programmer to a working Windows application.

It is also Windows only, which shapes this site's course. WinForms draws through the Windows desktop APIs, so every listing in the course is compiled in a Linux container for net10.0-windows and never started; the pages say so, and they describe a control's behaviour as the documentation does. The logic that draws nothing, a validator, a view model, a presenter, is plain .NET code: that is run headless, and the course builds its testing part on it.

Read the course in order. If you only need one answer, the first lesson explains where WinForms fits next to WPF, MAUI and ASP.NET Core, and the eighth explains exactly what can and cannot be checked on Linux.

All articles