using System.Windows.Forms; using System.Drawing; class frm : Form { Label lb1 = new Label(); Label lb2 = new Label(); Label lb3 = new Label(); TextBox tb1 = new TextBox(); TextBox tb2 = new TextBox(); TextBox tb3 = new TextBox(); frm() { Text = "Customer entry"; lb1.Text = "CustomerID:"; lb2.Text = "First Name:"; lb3.Text = "Last Name:"; lb2.Location = new Point(0, 25); lb3.Location = new Point(0, 50); Controls.Add(lb1); Controls.Add(lb2); Controls.Add(lb3); tb1.Location = new Point(100, 0); tb2.Location = new Point(100, 25); tb3.Location = new Point(100, 50); Controls.Add(tb1); Controls.Add(tb2); Controls.Add(tb3); } static public void Main() { Application.Run(new frm()); } }