How to get a splash screen to wait for 5 seconds before loading Main.VB form?

Hello,

I'm working on a web browser application. How can I get the splash screen (SplashScreen.VB) to start, wait for 5 seconds and then close and open up the main screen, Main.VB? Code samples, please? Thanks.

[214 byte] By [jrothwell9] at [2007-12-17]
# 1

Sorry, should have said before: I'm using VB 2005 Express. Thanks.

jrothwell9 at 2007-9-9 > top of Msdn Tech,Visual Basic,Visual Basic Language...
# 2

WHen you are finished with the processing and ready to return call this:

System.threading.threads.sleep(5000)

Enjoy!

ReneeC at 2007-9-9 > top of Msdn Tech,Visual Basic,Visual Basic Language...
# 3
The default display time is 2000 milliseconds (2 seconds). You can use the MinimumSplashScreenDisplayTime property in the My.Application namespace to change this. Add the following code in the OnInitialize event of your SplashScreen form:

Me.MimimumSplashScreenDisplayTime = 5000

Hope this helps,
Steve Hoag
the V-Bee

shoagMSFT at 2007-9-9 > top of Msdn Tech,Visual Basic,Visual Basic Language...