Chapter 6. Windows Forms Designer

In a real-world program, our interactions with users are expected to be through a graphical user interface (GUI). Under .NET, we do that through a collection of classes defined within the System.Windows.Forms namespace. Although we can program these classes directly, by defining an instance of a radio button—specifying its location, the text to display, and so on—in practice that approach is simply too tedious and error-prone.

Rather we use the Windows Forms drag-and-drop designer, a rapid application development (RAD) tool that is part of Visual Studio.NET. Visual Basic programmers have been doing RAD development for many years with impressive results. Under .NET, RAD support has been extended to C# as well. ...

Get C# Primer: A Practical Approach 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.