I have two forms where one is a login form and the other is the main form. The user enters their username and password and clicks the "login" button. The code in the login button validates the username and password and if correct opens the main form. The problem I'm having is that when the main form opens the login form doesn't close. I have tried using this.close() but it closes the whole application. I have tried closing the login form from the login button and in the load event of the main form but the whole application still closes.
I would appreciate any help you can offer with this problem.
Thanks in advance