tailieunhanh - Developing a Simple Windows Application phần 2
// // Required for Windows Form Designer support // InitializeComponent(); // // TODO: Add any constructor code after InitializeComponent call // } /// | Required for Windows Form Designer support InitializeComponent TODO Add any constructor code after InitializeComponent call summary Clean up any resources being used. summary protected override void Dispose bool disposing if disposing if components null disposing region Windows Form Designer generated code summary Required method for Designer support - do not modify the contents of this method with the code editor. summary private void InitializeComponent new new myLabel new 8 8 myLabel new 288 184 0 labell myButton new 120 200 myButton new 72 24 1 Press Me new Forml new 5 13 new 304 237 new Forml My Form false endregion summary The main entry point for the application. summary STAThread static void Main new Form1 private void myButton_Click object sender e Is this a dagger which I see before me n The handle toward my hand Come let me clutch thee. n I have thee not and yet I see thee still. n Art thou not fatal vision sensible n To feeling as to sight or art thou but n A dagger of the mind a false creation n Proceeding from the heat-oppressed brain As you can see the Forml class is derived from the class. The Form class represents a Windows form. Note The namespace contains the various classes for creating Windows
đang nạp các trang xem trước