1
Good evening guys I’m doing a project in college and I came across a problem a while back and I couldn’t solve it. I have the Login screen and within the system I have User Exchange and when I call the Login screen it opens another system on top with what was being used below, when I close the previous application closes everything, I made the authentication close the current screen and open a new one only that when the previous application closes it waits for the confirmation of closure yes or there is something that I can solve it ?
The code below is from the menu button calling the login screen of the user, the commented code is the test I did with an example of the internet more did not work
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();
}
Your question is a bit confusing, try to put an excerpt of code referring to each step you are explaining to facilitate understanding. @Denilson-carlos
– rubStackOverflow
I believe that my answer helps you to solve your problem, to know a little more of how it works Sopt make a [tour].
– mateusalxd