The progress window is displayed like vs. After the progress window is displayed, the main window is opened.
The Code is as follows:
Code
/*
* Created by SharpDevelop.
* User: admin
* Date: 2010-1-11
* Time: 12: 43
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
Using System;
Using System. Windows. Forms;
Namespace FlashFormDemos
{
/// <Summary>
/// Class with program entry point.
/// </Summary>
Internal sealed class Program
{
Private static ApplicationContext context;
Private static MainForm _ mainForm = null;
Private static FlashForm _ flashForm = new FlashForm ();
/// <Summary>
/// Program entry point.
/// </Summary>
[STAThread]
Private static void Main (string [] args)
{
// Application. EnableVisualStyles ();
// Application. SetCompatibleTextRenderingDefault (false );
// Change the order to accelerate Loading
_ FlashForm. Show ();
_ MainForm = new MainForm ();
Context = new ApplicationContext ();
Application. Idle + = new EventHandler (Application_Idle );
Application. Run (context );
// Application. Run (new MainForm ());
}
Static void Application_Idle (object sender, EventArgs e)
{
If (context. MainForm = null)
{
Application. Idle-= new EventHandler (Application_Idle );
_ MainForm. PreLoad ();
Context. MainForm = _ mainForm;
Context. MainForm. Show ();
_ FlashForm. Close ();
_ FlashForm = null;
}
}
}
}
File:/Files/csharponworking/FlashFormDemos.zip