Creating a Simple Windows Forms Application

Windows Forms applications use the Windows Forms classes and interfaces to create the application. In this method, the classes, properties and methods contained in the Windows.Forms namespace are used to create the application. All forms, dialog boxes and controls are created and manipulated using code alone. The Windows Forms Designer, which comes with Microsoft Visual Studio .NET 7.0, can also be used to create a Windows application. This is an IDE that enables you to drag and drop controls on a form. The code required to initialize the various controls is generated by the IDE. You can add additional code to perform those functions that you require.

Listing 17.1 uses the first method. The examples ...

Get Special Edition Using 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.