I\'m building an application that have a initial form for login and if the user is authorized this form (login) should close and the application main form should open.
I
If you start with the login form and close it, you no longer have any thread to run on. So (one of) the solution would be to run a different initial form and make that form launch the login form. Once the login form is no longer useful, you can close that and return control to the initial form. You can then spawn any kind of form as needed from the initial form.