I have a simple program that runs, but before that, I pop out a login form that validates if the information is correct. If it is, the login form closes and the main form kicks in. However, when I close the login form after opening the main form, it shuts down the whole application.
My program.cs just runs a new frmLogin. This is what happens when I login.
frmMain frm = new frmMain(UsernameTextBox.Text, PasswordTextBox.Text);
frm.Show();
this.Close();
How can I suppress that? Thanks