public SplashScreen(ISupportSplashScreen owner)
        {
            this.splashOwner = owner;

            this.DoubleBuffered = true;

            // The splash screen should not take focus.
            this.SetStyle(ControlStyles.Selectable, false);
            this.SetStyle(ControlStyles.StandardClick, false);

            // Required for Windows Form Designer support
            InitializeComponent();

            this.InitializeUI();
        }
 private void UnHookEvents()
 {
     this.splashOwner.InitializationStatusChanged -= new InitializationStatusChangedEventHandler(this.Application_InitializationStatusChanged);
     this.splashOwner.InitializationComplete      -= new EventHandler(this.Application_InitializationComplete);
     this.splashOwner = null;
 }