Share via


.NET Samples - Windows Forms: Application Model

This section includes the following samples:

Simple Hello World Sample

Hello World Sample

Simple Hello World Sample

This sample demonstrates the basic code needed to instantiate a Form object as a derived class and create an application using the Windows Forms Application Model.

Namespaces used in this sample:

System; System.Windows.Forms

Classes used in this sample:

Form; Application; Thread

Hello World Sample

This sample demonstrates the basic code needed to designate a Form object as a derived class and create an application using the Windows Forms Application Model.

Namespaces used in this sample:

System; System.Windows.Forms; System.Drawing

Classes used in this sample:

Form; Button; Message; MessageBox; Control; TextBox; SystemInformation; EventHandler; Application; Exception; Thread; EventArgs