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
Sam HobbsPosted Apr 13, 2011, 12:07 AM
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.
VulpesPosted Apr 12, 2011, 10:35 AM
Mark CPosted Apr 12, 2011, 10:10 AM
VulpesPosted Apr 12, 2011, 4:45 AM
Ankit NandekarPosted Apr 12, 2011, 1:37 AM