A form-based Windows Skeleton

image_pdfimage_print


   

// A form-based Windows Skeleton. 
 
using System; 
using System.Windows.Forms; 
 
// WinSkel is derived from Form. 
public class WinSkel : Form { 
 
  public WinSkel() { 
    // Give the window a name. 
    Text = "A Windows Skeleton"; 
  }   
 
  // Main is used only to start the application. 
  [STAThread] 
  public static void Main() { 
    WinSkel skel = new WinSkel(); // create a form 
 
    // Start the window running. 
    Application.Run(skel); 
  } 
}