I have 2 forms
form1 = login,
form2 = main
I tried this to switch from form1
to form2
(new Form2()).Show();
this.Hide();
And everything work just fine but when I close the program is still showing in the process manager/ doesn't stop debugging automatically, so how to fix that?