using System.Windows.Forms; class ex : Form { TabControl tc = new TabControl(); TabPage tp1 = new TabPage(); ex() { Text = "hello"; Controls.Add(tc); tp1.Text = "Example"; tc.TabPages.Add(tp1); } static public void Main() { Application.Run(new ex()); } }