Windows Forms: Splash Screen in C#

This post shows you How to Create a Splash Screen in C# .NET Windows Forms Application.

Creating a simple loading screen c# by using the SplashScreen library. So, to play the demo you should install the SplashScreen.dll by right-clicking on your project, then select Manage NuGet Packages -> Search 'splash screen' -> Install it into your project.

C# splash screen while loading

The SplashScreen library is an open source that helps you create a simple splash screen in c# windows forms application.

splash screen thread c#

Initializing your constructor as the following c# code that allows you to start a new thread to run your splash screen form.

//splash screen thread c#
public frmMain()
{
    Thread t = new Thread(new ThreadStart(Splash));
    t.Start();
    InitializeComponent();
    //Loading data
    string str = string.Empty;
    for (int i = 0; i < 100000; i++)
    {
        str += i.ToString();//Init data, only for demo
    }
    //Complete
    t.Abort();
}

Adding your handle code below "loading data" line, To simulate data processing i'm using a loop to delay the process.

Next, Create the Splash method allows you to open the flash screen form as the following c# code.

void Splash()
{
    //Open a splash screen form
    SplashScreen.SplashForm frm = new SplashScreen.SplashForm();
    frm.Font = new Font("Time New Romans", 7);
    frm.AppName = "Demo";
    frm.Icon = Properties.Resources.app;//Load icon from resource
    frm.ShowIcon = true;
    frm.ShowInTaskbar = true;
    Application.Run(frm);
}

Through this c# example, you can create a simple splash screen form that helps you loading screen c# windows forms application when you're loading or processing data.

c# splash screen

You can also add icon to the splash screen form or change the font type or font size to create the loading screen like Microsoft Office loading screen above.

VIDEO TUTORIAL