namespace WinEventHandler { partial class Form1 { /// /// 設計工具所需的變數。 /// private System.ComponentModel.IContainer components = null; /// /// 清除任何使用中的資源。 /// /// 如果應該處置 Managed 資源則為 true,否則為 false。 protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } #region Windows Form 設計工具產生的程式碼 /// /// 此為設計工具支援所需的方法 - 請勿使用程式碼編輯器 /// 修改這個方法的內容。 /// private void InitializeComponent() { this.btn3 = new System.Windows.Forms.Button(); this.btn2 = new System.Windows.Forms.Button(); this.btn1 = new System.Windows.Forms.Button(); this.lblShow = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label(); this.SuspendLayout(); // // btn3 // this.btn3.Location = new System.Drawing.Point(218, 94); this.btn3.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.btn3.Name = "btn3"; this.btn3.Size = new System.Drawing.Size(75, 34); this.btn3.TabIndex = 9; this.btn3.Text = "按鈕三"; this.btn3.UseVisualStyleBackColor = true; this.btn3.Click += new System.EventHandler(this.btn1_Click); // // btn2 // this.btn2.Location = new System.Drawing.Point(123, 94); this.btn2.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.btn2.Name = "btn2"; this.btn2.Size = new System.Drawing.Size(75, 34); this.btn2.TabIndex = 8; this.btn2.Text = "按鈕二"; this.btn2.UseVisualStyleBackColor = true; this.btn2.Click += new System.EventHandler(this.btn1_Click); // // btn1 // this.btn1.Location = new System.Drawing.Point(20, 94); this.btn1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.btn1.Name = "btn1"; this.btn1.Size = new System.Drawing.Size(75, 34); this.btn1.TabIndex = 7; this.btn1.Text = "按鈕一"; this.btn1.UseVisualStyleBackColor = true; this.btn1.Click += new System.EventHandler(this.btn1_Click); // // lblShow // this.lblShow.AutoSize = true; this.lblShow.Location = new System.Drawing.Point(70, 167); this.lblShow.Name = "lblShow"; this.lblShow.Size = new System.Drawing.Size(41, 15); this.lblShow.TabIndex = 6; this.lblShow.Text = "label2"; // // label1 // this.label1.AutoSize = true; this.label1.Font = new System.Drawing.Font("新細明體", 16.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(136))); this.label1.Location = new System.Drawing.Point(69, 33); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(142, 22); this.label1.TabIndex = 5; this.label1.Text = "共用事件範例"; // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(326, 212); this.Controls.Add(this.btn3); this.Controls.Add(this.btn2); this.Controls.Add(this.btn1); this.Controls.Add(this.lblShow); this.Controls.Add(this.label1); this.Font = new System.Drawing.Font("新細明體", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(136))); this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.Name = "Form1"; this.Text = "Form1"; this.Load += new System.EventHandler(this.Form1_Load); this.ResumeLayout(false); this.PerformLayout(); } #endregion private System.Windows.Forms.Button btn3; private System.Windows.Forms.Button btn2; private System.Windows.Forms.Button btn1; private System.Windows.Forms.Label lblShow; private System.Windows.Forms.Label label1; } }