//create a new tab which loads a given url private void initNewTab(string url) { TabPage tab = new TabPage(); WebTab x = new WebTab(); tab.Controls.Add(x); tabControl1.Controls.Add(tab); tab.Text = "Tab " + tabControl1.Controls.Count; x.loadPage(url); }