using System; using System.Windows.Forms; class a { static void Main () { using (Form f = new Form ()) { TextBox t = new TextBox (); t.Text = "aiIj"; //t.Padding = new Padding (4); t.BorderStyle = BorderStyle.None; t.TextAlign = HorizontalAlignment.Right; f.Controls.Add (t); TextBox t2 = new TextBox (); t2.Text = "aiIj"; t2.Top = 25; t2.TextAlign = HorizontalAlignment.Right; f.Controls.Add (t2); TextBox t3 = new TextBox (); t3.Text = "aiIj"; t3.Top = 50; t3.BorderStyle = BorderStyle.FixedSingle; t3.TextAlign = HorizontalAlignment.Right; f.Controls.Add (t3); f.ShowDialog (); } } }