Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I only want to show my splash screen once the main form has completely loaded in the background. My main form by itself takes like 3 seconds to load, so I would like to display the splash screen for about 3 seconds and then show the main form because the main form will then be fully loaded, but instead it shows the splash screen for 3 seconds and then the main form still has to load anyway..
How can I load the main form in the background and then show it when it is fully loaded? Thanks for the help! :)
Posted

I have figured it out. I had my splash screen set as the main for to load under the Project Properties, but when you scroll down, there is a specific box to select the SPLASH SCREEN, I then selected my form, and everything worked exactly how it should. Thanks for the help.
 
Share this answer
 
You need to create a modeless form and show it in the constructor of your main form and then when your form is loaded, hide it. It sounds like you're showing a modal form on a timer. Use Show instead of ShowDialog, which means your form needs to be a member, then you can control when you hide it, and your form will load in the meantime
 
Share this answer
 
Comments
NY Andrew 14-Aug-11 22:26pm    
So basically your saying create the form programmatically? And yes I am showing it from a timer. I am using the Form1.Show() event, so I am not completely sure I understand what you are saying how that can load the form in the background..

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