Loading a splash screen...
I have a main form and I want to hide it, load a splash screen, run the splash screen's Load event, hide the splash screen and finally show the main form again. This is what I've got so far:
main form Load event:
VB Code:
private void frmMain_Load(object sender, System.EventArgs e)
{
this.Hide();
frmSplash SplashScreen = new frmSplash();
SplashScreen.Show();
}
splash screen Load event:
VB Code:
private void frmSplash_Load(object sender, System.EventArgs e)
{
<code i want executed>
<code to show the main form again>
this.Close();
}
Any ideas on what I should put to show the main form again? Can it be done using it's handle?