This paste brought to you by Pastebin. View Raw

  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Text;
  7. using System.Windows.Forms;
  8.  
  9. namespace Supermarket
  10. {
  11.     public partial class SplashPart : Form
  12.     {
  13.         public SplashPart()
  14.         {
  15.             InitializeComponent();
  16.         }
  17.  
  18.         private void SplashPart_Load(object sender, EventArgs e)
  19.         {
  20.             timer1.Start();
  21.         }
  22.  
  23.         private void timer1_Tick(object sender, EventArgs e)
  24.         {
  25.             //int start = 0;
  26.             Progressbar.Value = Progressbar.Value + 4;
  27.            
  28.             if(Progressbar.Value == 100)
  29.             {
  30.                 Progressbar.Value = 0;
  31.                 timer1.Stop();
  32.                 this.Hide();
  33.                 Login log = new Login();
  34.                 log.Show();
  35.             }
  36.         }
  37.  
  38.     }
  39. }
  40.