It may not be the best way to do this, but i'm trying to use a splash screen to delay form1 loading whilst things go on in the background, i.e all the network drives get mapped and so on.
I'm using a form called "Splash" that gets fired up first then a timer tick event to launch "Form1" the problem is, when i use
this.Hide();
this.Close();

1 answers
If I were you I'd leave Form1 as your start up form i.e. in the Main() method in program.cs you need:
Then I'd show the splash form from the Form1_Load eventhandler:
You can then call Close() on your Splash form at the appropriate time without closing the whole application as it will no longer be the start up form.
answered 2 years ago by:
17279
690
My problem is that form1 loads data into a datagrid from remote data base, The application is launched from the start up menu so i really wanted to delay the form1 from loading giving all the network connections time to establish ensuring no errors are thrown if the application can't find the databases - i suppose i could place another form in front of form1 that then fires the splash screen?
2499
To enable form1 to continue loading while the splash screen is visible, use Show in stead of ShowDialog in vulpes' example
690
Thanks guys - i've got working to do the job.