private void ProgressThread()
        {
            ProgressForm progressForm = new ProgressForm();
            progressForm.Show();
            while (true)
            {
#if (PocketPC)
                Thread.Sleep(5);
#else
                Thread.Sleep(20);
#endif
                
                if (progressMessage != null)
                    progressForm.UpdateProgressBar(progressMessage);
                //progressForm.Refresh();
            }
        }
        /// <summary>
        /// This thread creates a progress form, showing the different steps
        /// as the software loads
        /// </summary>
        private void ProgressThread()
        {
            ProgressForm progressForm = new ProgressForm();
            progressForm.Show();
            while (progressThreadQuit == false)
            {
#if (PocketPC)
                Thread.Sleep(5);
#else
                Thread.Sleep(20);
#endif

                if (progressMessage != null)
                     progressForm.UpdateProgressBar(progressMessage);

            }
            progressForm.Close();
            aProgressThread.Abort();            
        }