After the user inputs idnum and password. If thats correct the loginwindow is suppose to minimize and the mainwindow is suppose to come up. The main window comes up but the login window wont go away.
login window
main window
my problem
Code:if (userName_login_window.Equals("1") && pass_login_window.Equals("2")) { MainWindow window = new MainWindow(); window.ShowDialog();//Brings up the main window Application.Exit();//suppose to close login window but doesnt work. }
HELP Greatly needed.