Click here to Skip to main content
15,868,292 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all, I've created a SplashScreen and set it's Enabled Property to True. I've also set it's Interval Property to 10000, but, the SplashScreen stay for only 1 second and then it close.

Is there any code that I need to enter to let it stay for the full 10 seconds?

What I have tried:

I've googled for a solution to this problem but couldn't find anything.
Posted
Updated 1-Apr-16 0:06am
Comments
Jochen Arndt 1-Apr-16 5:57am    
Show your code.
It should be according to the example at https://msdn.microsoft.com/en-us/library/microsoft.visualbasic.applicationservices.windowsformsapplicationbase.minimumsplashscreendisplaytime%28v=vs.110%29.aspx
TeeJay76 1-Apr-16 6:30am    
Thank you, it work, but now the MainForm opens 2 seconds after the SplashScreen displays, leaving the SplashScreen running beind the MainForm.

How do I fix that problem?
TeeJay76 1-Apr-16 7:14am    
I found the problem, thank you.

1 solution

SplashScreen form has a My.Application.MinimumSplashScreenDisplayTime Property[^]

Can you test it?
 
Share this answer
 
Comments
TeeJay76 1-Apr-16 6:24am    
Thank you, it work, but now the MainForm opens 2 seconds after the SplashScreen displays, leaving the SplashScreen running beind the MainForm.

How do I fix that problem?
phil.o 1-Apr-16 6:30am    
I don't know. Maybe these two seconds correspond to the time it takes for your main form to load?
I'm terrible at guessing; you should debug and try to see what is going on.
TeeJay76 1-Apr-16 7:09am    
I've found the problem, thank you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900