Hello,
I have two forms, Login and Main. The VB project is set to load Login first. If the user's credentials are correct I call the main form with Main.Visable = True and hide the Login form with Me.visable = false
While this works, if I close down the Main form using the normal X button, the form closes but the application does not. I assume because the Login form is stil hidden in the background.
How can I get the application to close completely (both forms) when the X button is clicked on the Main form?
Thanks
I have two forms, Login and Main. The VB project is set to load Login first. If the user's credentials are correct I call the main form with Main.Visable = True and hide the Login form with Me.visable = false
While this works, if I close down the Main form using the normal X button, the form closes but the application does not. I assume because the Login form is stil hidden in the background.
How can I get the application to close completely (both forms) when the X button is clicked on the Main form?
Thanks