Subclass Form to create a window : Introduction « GUI Windows Forms « C# / CSharp Tutorial






using System;
using System.Windows.Forms;

public class MainWindow : Form
{
    public MainWindow(){}
}

public class MainClass
{
  public static int Main(string[] args) 
  {
    Application.Run(new MainWindow());
    return 0;
  }
}








23.1.Introduction
23.1.1.Empty FormEmpty Form
23.1.2.First Window ApplicationFirst Window Application
23.1.3.A form-based Windows Skeleton
23.1.4.Exit application
23.1.5.Button click handlerButton click handler
23.1.6.Use Application.Run to load window application
23.1.7.Subclass Form to create a window
23.1.8.Essential elements of a Windows Forms application.