Code for Windows Forms Applications
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

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

© 2015 Microsoft