dontevenseethis

Downloading screen Code

May 16th, 2021 (edited)
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. //make sure to use a timer and double click it. also make a form2
  2. // for the loading screen to work. also you will have to set the timer to true in its properties
  3. //and set the interval to any thing you'd like
  4.  
  5. flowLayoutPanel2.Width += 5; //use what ever you want i was using a pannel
  6. if (flowLayoutPanel2.Width >= 295) //changethe 295 to what ever value is at ur max on the download
  7. {
  8. timer1.Stop(); //you need a timer, double click the timer
  9. MessageBox.Show("Finished Downloading"); //set this to what ever you want
  10. Form2 f2 = new Form2(); //make a new form called form2
  11. f2.Show();
  12. this.Hide();
Add Comment
Please, Sign In to add comment