SplashScreen.Terminate C# (CSharp) Method

Terminate() public method

public Terminate ( ) : void
return void
    public void Terminate()
    {
        this.Invoke((MethodInvoker)delegate
        {
            this.Height = 74;
            OK.Visible =
            notification.Visible = false;
            progressBar1.Enabled = true;
            linkLabel1.Visible = false;
            this.Close();
        });
    }

Usage Example

Example #1
0
 public static void HideSplash()
 {
     try
     {
         //instance.Invoke((MethodInvoker)delegate { Application.ExitThread(); });
         instance.Terminate();
     }
     catch { }
 }