Windows Forms: Splash Screen in C#

How to make a Splash Screen with Progress Bar in Windows Forms using C#

Step 1Click New Project, then select Visual C# on the left, then Windows and then select Windows Forms Application. Name your project "SplashScreen" and then click OK

splash screen in c#Step 2: Create your splash screen as below

splash screen in c#

Step 3: Add code to handle main form

using System.Threading;
using System.Windows.Forms;

namespace SplashScreen
    public partial class frmMain : Form
        public frmMain()
            //Create new thread to run the splash screen
            Thread t = new Thread(new ThreadStart(StartForm));
            Thread.Sleep(5000);//Only for demo

        public void StartForm()
            Application.Run(new frmSplashScreen());