SBrighty
asked on
USING TIMER WITHIN A VB APPLICATION.....
I am fairly new to VB, and am trying to create a new application that briefly displays a splash form when executing the application. I would like the splash form to display for 5 seconds and then to open another form. I have tried adding a timer onto my startup splash form, and setting the parameters but doesn't seem to work. Could anybody let me know how to use the Timer to close down a form after the specified interval setting.
Thanks.
Steveeb.
Thanks.
Steveeb.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Cliven's answer has one problem. If your main form of the application is the splash form, and yuo will unload it after loading the Form1, the application will shut down...
The solution is to add a simple vb motule with a procedure called main, and set the module and procedure as startup object in the project properties. In this procedure you should load the splash form and the main form.
You can ask VB to do all the above automatically by selecting the VB application wizard and choosing a splash screen. This will do the dirty work for you. You can then implement Cliven's code and just remove the "Form1.Show" line.
The solution is to add a simple vb motule with a procedure called main, and set the module and procedure as startup object in the project properties. In this procedure you should load the splash form and the main form.
You can ask VB to do all the above automatically by selecting the VB application wizard and choosing a splash screen. This will do the dirty work for you. You can then implement Cliven's code and just remove the "Form1.Show" line.
ASKER