Cannot close the Form
I cannot close the Login form.
After I click OK on Login form, the next form appears and I do not need Login form anymore. But when I try to close it in code, the application closes also. I think it happens because I open Login form in Main by Application.Run(new LoginForm()). I tried to open Login form using Show, but it doesn't work in main.
So how can I close Login form without closing application?
Thanks very much in advance
|