Code Snippet
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
// Display Splash Screen
Thread newThread = new Thread(new ThreadStart(StartSplashScreen));
newThread.IsBackground = true;
newThread.Name = "Splash Screen Thread";
newThread.Start();
// TODO: Application Load Logic
// Kill the Splash Screen Thread
newThread.Join();
// Main Application Form
MainForm mainForm = new MainForm();
Application.Run(mainForm);
}
// Entry Method for Splash Screen GUI Thread
public static void StartSplashScreen()
{
SplashForm form = new SplashForm();
form.Name = "Splash Screen";
form.Show();
}