I have a code that shows constructor overloading..

My First form Login.cs and the code is.

```
private void button1_Click(object sender, EventArgs e)
{   
    this.Hide();
    EmpPanel f = new EmpPanel(textBox1.Text);
    f.Show(); 
}

```

Second Form is EmpPanel.cs i have 2 constructors--

```
public EmpPanel( string uid)
{
    InitializeComponent();
    this.id1 = uid;    
}

public EmpPanel()
{
    InitializeComponent();
    this.button1.Enabled = false;
    this.ControlBox = false;
}

```

Third form is have a button cancel when i click on it it again return to EmpPanel.cs..

```
private void button4_Click(object sender, EventArgs e)
{
    this.Hide();
    EmpPanel ep = new EmpPanel();
    ep.Show();
}

```

Problem is that when i click on the button4 of thirdform then it initialize the Id of EmpPanel.Cs then record is not saved in the database with that id instead of it the id is saved as 0.
Why..