I have an application which uses 2 forms, a Main Form and a Splash Form being used in the following configuration:
public class MainForm : Form { public MainForm() { SplashScreen splash = new SplashScreen(); // configure Splash Screen } } public class SplashScreen { public SplashScreen() { InitializeComponent(); // perform initialization this.ShowDialog(); this.BringToFront(); } }
NB: Main form is created with the following code:
Application.Run( new MainForm() );
The problem above is that the configuration of splash does not occur unless splash is closed with
splash.Close();
only when this occurs does the rest of the MainForm constructor run. how can I easily stop this blocking behaviour?
I already replied to you with a working example on the other question you asked for the same thing:
C# winforms startup (Splash) form not hiding