Windows Example - continued
§System.Windows.Forms.Button();
§ this.label1 = new System.Windows.Forms.Label();
§ this.SuspendLayout();
§
§ this.button1.Location = new System.Drawing.Point(109, 208);
§ this.button1.Name = "button1"; this.button1.TabIndex = 0; this.button1.Text = "Exit";
§ this.button1.Click += new System.EventHandler(this.button1_Click);
§
§ this.label1.Location = new System.Drawing.Point(70, 56);
§ this.label1.Name = "label1"; this.label1.TabIndex = 1; this.label1.Text = args;
§ this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
§ this.label1.Size = new System.Drawing.Size(152, 23);
§ this.Name = "Form1"; this.Text = "Sample Form";
§ this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
§ this.ClientSize = new System.Drawing.Size(292, 270);
§ this.Controls.AddRange(new System.Windows.Forms.Control[] {this.label1,this.button1});
§ this.ResumeLayout(false);}
§ [STAThread] static void Main(string[] args) {Application.Run(new Form1(args[0]));}
§ private void button1_Click(object sender, System.EventArgs e) {this.Close() ;}
§}}
§
§