Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 1.04 KB

README.md

File metadata and controls

40 lines (26 loc) · 1.04 KB

SplashScreen.WindowsForms

Nuget downloads NuGet
Library to display splash screen in Winforms.

TargetFrameworks:.NET8,.NET6,.NetFramework4.8

SplashScreen

Install

dotnet add package SplashScreen.WindowsForms

Getting Started

private void MainForm_Load(object sender, EventArgs e)
{
    var splasher = new Splasher("YourApplicationName");
    //Or
    var splasher = new Splasher("YourApplicationName","v1.0.0");
    //Or
    var splasher = new Splasher(new YourSplashForm());
    
    splasher.Show();
    
    Thread.Sleep(3000); //HeavyMethod
    
    splasher.Close();
    
    //Call Activate() because the MainForm is going backwards.
    this.Activate();
}