using System; using System.Windows.Forms; class WinSkel : Form { public WinSkel() { Text = "A Windows Skeleton"; } [STAThread] public static void Main() { WinSkel skel = new WinSkel(); Application.Run(skel); } }
23.1.Introduction | ||||
23.1.1. | Empty Form | |||
23.1.2. | First Window Application | |||
23.1.3. | A form-based Windows Skeleton | |||
23.1.4. | Exit application | |||
23.1.5. | Button 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. |