Sample Applications A-9
// btnEnter
this.btnEnter.Font = new System.Drawing.Font("Tahoma",
9.75F, System.Drawing.FontStyle.Regular);
this.btnEnter.Location = new System.Drawing.Point(32, 126);
this.btnEnter.Text = "Enter";
this.btnEnter.Click += new
System.EventHandler(this.btnEnter_Click);
// btnClear
this.btnClear.Font = new System.Drawing.Font("Tahoma",
9.75F, System.Drawing.FontStyle.Regular);
this.btnClear.Location = new System.Drawing.Point(128,
128);
this.btnClear.Text = "Clear";
this.btnClear.Click += new
System.EventHandler(this.btnClear_Click);
// Form1
this.ClientSize = new System.Drawing.Size(242, 272);
this.Controls.Add(this.btnClear);
this.Controls.Add(this.btnEnter);
this.Controls.Add(this.txtUPC);
this.Controls.Add(this.lblScanEnterData);
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Text = "Demo";
this.WindowState =
System.Windows.Forms.FormWindowState.Maximized;
this.Load += new System.EventHandler(this.Form1_Load);
}
#endregion
/// <summary>
/// The main entry point for the application.
/// </summary>
static void Main()
{
Application.Run(new Form1());
}