using System.Windows.Forms; class ex : Form { TextBox tb1 = new TextBox(); ex() { Text = "hello"; tb1.Width = 250; tb1.Multiline = true; Controls.Add(tb1); } static public void Main() { Application.Run(new ex()); } }