I want to add a splash screen to my application and then the sign in login window to appear. What is the code for the timer to display the splash screen for a short time then load the sign in screen?
Printable View
I want to add a splash screen to my application and then the sign in login window to appear. What is the code for the timer to display the splash screen for a short time then load the sign in screen?
Moved from CodeBank
in the splash screen form, add a timer and try this, here form2 refers to the login form in your project.
HarshVB Code:
Private Sub Form_Load() Timer1.Interval = 5000 'this will make your form to be present for 5 seconds Timer1.Enabled = True End Sub Private Sub Timer1_Timer() Timer1.Enabled = False Form2.Show Unload Me End Sub