Advertisement
dkg_yt

custom progress bar

Oct 21st, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.70 KB | None | 0 0
  1.             panel1.Width += 4; // expands your panel
  2.  
  3.             if(panel1.Width >= 67) // fake downloading data
  4.             {
  5.                 label2.Text = "Downloading Data...";
  6.             }
  7.  
  8.             if(panel1.Width >= 219) // fake checking data
  9.             {
  10.                 label2.Text = "Checking data...";
  11.             }
  12.  
  13.             if(panel1.Width >= 459) // when it is done loaded
  14.             {
  15.                 timer1.Stop();
  16.                 label2.Text = "Done!";
  17.                 await Task.Delay(2000);
  18.                 this.Hide();
  19.                 Main_Egg main_Egg = new Main_Egg(); // name of your main frame
  20.                 main_Egg.Show(); // shows your main frame
  21.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement