Keep layout the same when adding a tab [SOLUTION BELOW CODE]
<p>I am quite new at C# so I need everything as simple as possible, I have coded a web browser with tabs, when I click add tab however it only Opens a webrowser in the new tab on google.co.uk but what I need is the new tab to have an adressbar and a navigate button for me to be able to navigate to another URL in the new tab. Basically what I want to get is an add tab button that adds a tab with a totally seperate Web Browser and a seperate adressbar and a seperate Navigate button. Here is my code so far:</p>

<pre><code>using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
    public Form1()
    {
        InitializeComponent();
    }

    private void button2_Click(object sender, EventArgs e)
    {
        TabPage tb = new TabPage("Tab");
        WebBrowser wb = new WebBrowser();
        wb.Dock = DockStyle.Fill;
        wb.Navigate("www.google.co.uk");
        tabControl1.TabPages.Add(tb);
        tb.Controls.Add(wb);
        tabControl1.SelectTab(tb);
    }

    private void closeAltF4ToolStripMenuItem_Click(object sender, EventArgs e)
    {
        this.Close();
    }

    private void addTabToolStripMenuItem_Click(object sender, EventArgs e)
    {
        TabPage tb = new TabPage("Tab");
        WebBrowser wb = new WebBrowser();
        wb.Dock = DockStyle.Fill;
        wb.Navigate("www.google.co.uk");
        tabControl1.TabPages.Add(tb);
        tb.Controls.Add(wb);
        tabControl1.SelectTab(tb);
        tb.Controls.Add(new TextBox());


    }

    private void button1_Click_1(object sender, EventArgs e)
    {
        webBrowser1.Navigate(textBox1.Text);
    }

    private void removeTabToolStripMenuItem_Click(object sender, EventArgs e)
    {
        tabControl1.TabPages.Remove(tabControl1.SelectedTab);
    }

}
</code></pre>

<p>}</p>

<p>SOLUTION:</p>

<p>I got it to work with the Usercontrol, I designed a Usercontrol form and then added it into the tabs using this code:</p>

<pre><code>TabPage tb = new TabPage("Tab");
        MenuStrip ms = new MenuStrip();
        tabControl1.TabPages.Add(tb);
        tb.Controls.Add(ms);
        tb.Controls.Add(new UserControl1()); 
        tabControl1.SelectTab(tb);
</code></pre>
