Hi All.
When I run project splashscreen is popup and then Logon window is run. But unfortunately when Logon window is run the splashscreen still open like maximized window and I cannot see Logon window. How to fix that problem?
Thanks.
Printable View
Hi All.
When I run project splashscreen is popup and then Logon window is run. But unfortunately when Logon window is run the splashscreen still open like maximized window and I cannot see Logon window. How to fix that problem?
Thanks.
Displaying a splash screen and a login window is a little bit tricky. You should definitely use the splash screen functionality built into VB, i.e. add your form and select it as the application splash screen in the project properties. For the login window, you have basically two options:
1. Display the login window from the Load event handler of the startup form. The issue with this is that the main form will be created and displayed no matter what, so don't use this option if you want to exit the app on a failed login.
2. Make the login window the startup form and set the Shutdown Mode to Last Form instead of First Form.