Windows Forms: Splash Screen in C#
By FoxLearn 5/28/2017 9:55:24 AM 6.44K
How to make a Splash Screen with Progress Bar in Windows Forms using C#
Step 1: Click 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
Step 2: Create your splash screen as below
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)); t.Start(); Thread.Sleep(5000);//Only for demo InitializeComponent(); t.Abort(); } public void StartForm() { Application.Run(new frmSplashScreen()); } } }
VIDEO TUTORIALS