private void InitializeComponent() { this.textBox1 = new System.Windows.Forms.TextBox(); this.label1 = new System.Windows.Forms.Label(); this.button1 = new System.Windows.Forms.Button(); this.label2 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.SuspendLayout();
this.textBox1.Location = new System.Drawing.Point(8, 80); this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(56,23); this.textBox1.TabIndex = 1; this.textBox1.Text = ""; this.textBox1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Key_Press);
this.label1.Location = new System.Drawing.Point(16, 16); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(256,64); this.label1.TabIndex = 0; this.label1.Text = "Whenever you use the arrow keys inside the text box, Corresponding events will be" +"fired to display the label appropriately. Have a try!!";
this.button1.Location = new System.Drawing.Point(240, 112); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(48,23); this.button1.TabIndex = 3; this.button1.Text = "Exit"; this.button1.Click += new System.EventHandler(this.button1_Click); // // label2 // this.label2.Location = new System.Drawing.Point(88, 80); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(184,23); this.label2.TabIndex = 2; this.label2.TextAlign =System.Drawing.ContentAlignment.MiddleCenter; // // label3 // this.label3.Location = new System.Drawing.Point(8, 104); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(64,23); this.label3.TabIndex = 4; this.label3.TextAlign =System.Drawing.ContentAlignment.MiddleCenter; // // Form1 // this.AutoScaleBaseSize = new System.Drawing.Size(6, 16); this.ClientSize = new System.Drawing.Size(292,141); this.Controls.AddRange(new System.Windows.Forms.Control[]{this.label3,this.button1,this.label2,this.textBox1,this.label1});