static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     SplashScreen.SplashScreen splash = new SplashScreen.SplashScreen();
     splash.Show();
     splash.SetProgress("Initializing...", 0.0);
     Application.Run(new Form1(splash));
 }
        public Form1(SplashScreen.SplashScreen splash)
        {
            mSplash = splash;

            //Set up auto detect of USB device plugged in.
            JoyConnectNotify = new DetectHIDDeviceConnect.JoystickConnectNotification(this);
            JoyConnectNotify.OnJoystickConnected += new DetectHIDDeviceConnect.JoystickConnectNotification.JoyConnectDel(JoyConnectNotify_OnJoystickConnected);

            InitializeComponent();

            this.BackColor = Color.FromArgb(137, 138, 139);

            rockBandDrumControler1.DrumPadClicked += new RockBandDrumControler.DrumPadClickedEventHandler(DrumKit_DrumPadHit);

            mSplash.SetProgress("Enabling Midi Device", 0.4);
            //start midi engine
            MidiPlayer.OpenMidi();
        }
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            // Create a new 'splash screen instance
            SplashScreen.SplashScreen ss = new SplashScreen.SplashScreen();
            // Show it
            ss.Visibility = System.Windows.Visibility.Visible;
            // Forces the splash screen visible
            Application.DoEvents();
            // Here's where you'd your actual loading stuff, but this
            // thread sleep is here to simulate 'loading'
            System.Threading.Thread.Sleep(5000);
            // Hide your splash screen
            ss.Visibility = System.Windows.Visibility.Hidden;
            // Start your main form, or whatever
            Application.Run(new Form1());
        }