private void toolStripTextBox1_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == 13) { int currentTab = tabControl1.SelectedIndex; MessageBox.Show(currentTab.ToString()); // tabControl1.SelectedTab. webBrowser1.Navigate(toolStripTextBox1.Text); // Identify selected tab from tabControl1 and use this // to load the requested URL in the current tab's web browser } } private void Form1_Load(object sender, EventArgs e) { webBrowser1.Navigate("http://www.google.co.uk"); } private void newWindowToolStripMenuItem_Click(object sender, EventArgs e) { Form nextWindow = new Form1(); nextWindow.Show(); } private void newTabToolStripMenuItem_Click(object sender, EventArgs e) { TabPage nextTab = new TabPage("Google"); tabControl1.TabPages.Add(nextTab); tabControl1.SelectedTab = nextTab; WebBrowser webBrowser1 = new WebBrowser(); nextTab.Controls.Add(webBrowser1); webBrowser1.Dock = DockStyle.Fill; webBrowser1.Navigate("http://www.google.co.uk"); }