Agus on July 20th, 2009

This small article is a review of a .NET component that will help you in creating a pretty good splash screen in C# or VB.Net. After having made my own splash screens for several projects and having tried different approaches for the task, I’ve found this very useful component while surfing on the net. Far from being expensive and with a very well designed interface, this component is the right choice for those who don’t want to bother with all the coding themselves.

Once you import the supplied DLL you also need to import the Splash_Screen_Component namespace and you’re ready to go. One great feature about this component is that it runs on its own thread.

Here’s an example of how simple it is to use this component

    1Splash.Start();
    2Splash.SetBackgroundImage(Image.FromFile("./SplashBG.png"));
    3
    4Splash.State = "Loading Images";
    5Splash.StateDescription = "Animated GIFs";
    6loadGifs();
    7
    8Splash.StateDescription = "Animated JPGs";
    9loadJpgs();
   10
   11// How to display a progress bar
   12loadUIButtons();
   13
   14Splash.Vanish();
   15
   16private void loadUIButtons() {
   17          int value;
   18
   19          Splash.DisplayProgressBar = true;
   20          Splash.State = "Loading Buttons";
   21
   22           // load 70 buttons
   23           for (int i=0; i<70; i++) {
   24                value = (i/70.00) * 100;
   25                Splash.ProgressBarValue = value;
   26                Splash.StateDescription = "Current Button: " + i;
   27           }
   28
   29          Splash.DisplayProgressBar = false;
   30}

Ok, that’s it…!

Website: http://www.splash-screen.com

I’ll keep posting reviews about more useful components, feel free to comment and/or suggest other related components.

Sphere: Related Content

Tags: , , , , , ,

Leave a Reply