Click here to Skip to main content
15,902,189 members
Please Sign up or sign in to vote.
2.00/5 (4 votes)
See more:
How to reduse time limit of splash from in a project in vb.net
Posted
Comments
Richard MacCutchan 9-Apr-13 6:55am    
Use a shorter time value.

You really need to explain your problem in better detail than the above.

1 solution

I have code in one of my projects that will set a minimum display time for the splash screen. This is because it was going away too quickly for me. I added this code in the Application Events:
VB
Protected Overrides Function OnInitialize(commandLineArgs As System.Collections.ObjectModel.ReadOnlyCollection(Of String)) As Boolean
   Me.MinimumSplashScreenDisplayTime = 4000 'Min of 4 seconds
   Return MyBase.OnInitialize(commandLineArgs)
End Function


If you want your splash screen to go away even quicker...I'm not sure how you would do it. You must have something loading that is taking a while. Are you doing anything time consuming in the MyApplication_Startup event? Or in the Load Event of the first form you display? You could look into making some changes to those. Perhaps incorporating multi-threading?

Hope this helps.
 
Share this answer
 

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