Mega Code Archive

 
Categories / C# Tutorial / GUI Windows Forms
 

Subclass Form

using System; using System.Drawing; using System.Windows.Forms;     class InheritTheForm: Form {      public static void Main()      {           InheritTheForm form = new InheritTheForm();           form.Text = "Inherit the Form";           form.BackColor = Color.White;               Application.Run(form);      } }