I have 2 forms, one is a "Loading" form and the other is the "main" form.
In Program.cs:
[STAThread]
static void Main()
{
Application.Run(new loadingForm());
//some code here
Application.Run(new mainForm());
}
How come "//some code here" is not ran until loadingForm closes?
Loading

Ankit NandekarRank #703 · 3.4K reputationPosted Apr 11, 2011, 9:37 PM EDT
VulpesRank #55 · 29.2K reputationPosted Apr 12, 2011, 12:45 AM EDT
Mark C4 reputationPosted Apr 12, 2011, 6:10 AM EDT
VulpesRank #55 · 29.2K reputationPosted Apr 12, 2011, 6:35 AM EDT
Sam HobbsRank #107 · 20.5K reputationPosted Apr 12, 2011, 8:07 PM EDT
You can look for articles and samples about splash screens. There are many solutions for that. Perhaps you can use a thread to do the "some code". You could use a synchronization object for the thread to notify the splash screen that it (the initialization) is done.