I'm working on project with sign in feature 

When I run the project there is a form (`form1`) run the sign in .
after i click on login button build another form (`form2`) - It's the form of my program .
and made the first form (`form1`) hide .

The problem is when I press at the X button in form2 it's close but the form1 it's still running .

I tried to close the `form1` instead of hide ... but this will close `form2` before launching 

In `form1`: 

```
this.Hide();
Form2 x = new Form2();                 
x.Show();

```