Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10.  
  11. namespace Supermarket
  12. {
  13.     public partial class Splach : Form
  14.     {
  15.         public Splach()
  16.         {
  17.             InitializeComponent();
  18.         }
  19.  
  20.         private void guna2VProgressBar1_ValueChanged(object sender, EventArgs e)
  21.         {
  22.  
  23.         }
  24.  
  25.         int startpoint = 0;
  26.         private void timer1_Tick(object sender, EventArgs e)
  27.         {
  28.             startpoint += 1;
  29.             Myprogess.Value = startpoint;
  30.             if(Myprogess.Value == 100)
  31.             {
  32.                 Myprogess.Value = 0;
  33.                 timer1.Stop();
  34.                 Form1 login = new Form1();
  35.                 this.Hide();
  36.                 login.Show();
  37.             }
  38.         }
  39.  
  40.         private void Splach_Load(object sender, EventArgs e)
  41.         {
  42.             timer1.Start();
  43.  
  44.         }
  45.  
  46.         private void label1_Click(object sender, EventArgs e)
  47.         {
  48.  
  49.         }
  50.     }
  51. }