Good evening people I'm doing a project in the Faculty and I came across a problem at a time and I could not solve it. I have the Login screen and within the system I have User Change and when I call the Login screen it opens another system with what was being used underneath, when I close the previous application it closes everything, I made the authentication close the current screen and opens a new one that when closing the previous application is waiting for confirmation of closing yes or is there anything I can solve this?
The code below is the menu button calling the user login screen, the commented code is the test I did with an internet example but it did not work out
code:
private void trocarUsuarioToolStripMenuItem_Click(object sender, EventArgs e)
{
frmLogin objLogin = new frmLogin();
objLogin.MdiParent = this;
objLogin.Show();
//this.Visible = false;
//frmLogin objLogin = new frmLogin();
//objLogin.ShowDialog();
}