This documentation is archived and is not being maintained.

Code for Windows Forms Applications 

This topic is designed to help you find code that demonstrates how to perform common programming tasks in Windows Forms applications. The topics listed are code-oriented topics. If you are using Visual Studio, you can use the Windows Forms Designer to complete many of these tasks.

The tasks are divided into the following categories:

  • Application creation

  • Form manipulation

  • Dialog boxes

  • Data binding

  • MDI forms

  • Menu manipulation

  • Graphics and GDI+

  • Printing

  • Drag-and-drop operations

  • Handling user input

  • Interacting with COM components

Application Creation

Form Manipulation

Dialog Boxes

Data Binding

MDI Forms

Menu Manipulation

Graphics and GDI+


Drag-and-Drop Operations

Handling User Input

Interacting with COM Components

See Also