private static void ShowForm(object threadStartData) { JcwSplashScreenParameters jcwThreadStartData = threadStartData as JcwSplashScreenParameters; if (jcwThreadStartData != null) { ApplicationSplashScreen = new JcwSplashScreenFrm(jcwThreadStartData); Application.Run(ApplicationSplashScreen); } }
private JcwSplashScreenFrm(JcwSplashScreenParameters splashParameters) { InitializeComponent(); this.BackgroundImage = splashParameters.SplashScreenImage; this.ClientSize = this.BackgroundImage.Size; // start timer that will provide the fade-in/fade-out effect of the splash screen by changing the opacity this.Opacity = .00; this.splashScreenOpacityTimer.Interval = TIMER_INTERVAL; this.splashScreenOpacityTimer.Start(); }