WinForms from Scratch

A typical Windows Forms application has at least one form. Without the form it's just an “application,” which is pretty boring. A form is simply a window, the unit of the Microsoft user interface we've seen since Windows 1.0.

One form in a WinForms application is typically the main form, which means that it is either the parent or the owner[1] of all other forms that may be shown during the lifetime of the application. It's where the main menu is shown, along with the toolbar, status bar, and so on. When the main form goes away, the application exits.

[1] The distinction between a form's “parent” and “owner” is covered in detail in Chapter 2: Forms.

The main form of an application can be a simple message box, a dialog box, ...

Get Windows Forms Programming in C# now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.