Reputation: 886
Say I open a dialog like this:
Login login = new Login();
if(login.ShowDialog(this) != DialogResult.OK)
Application.Exit();
Now, login form has a close button in the menu by standard, and closing it seem to either return DialogResult.OK or no dialogresult at all and my application continues without repercussions. How to solve that problem?
Upvotes: 0
Views: 1247