This chapter looked at Windows programming in C#. Here's an overview of the topics we've discussed:
Windows are based on the System.Windows.Forms.Form class, and programming with them is straightforward. To create your own form, you just derive from this class. In Main, you pass a new object of the startup form you want the application to display to the Application.Run method.
Although you can write windowed applications by hand, you usually create them in the C# Integrated Development Environment (IDE). The IDE has a large set of tools available for rapid code development.
Forms and controls have a number of properties, such as the Text property, which displays title bar text in a form and caption text in buttons, as well as methods such ...