Advertisement
Guest User

Untitled

a guest
Apr 24th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.81 KB | None | 0 0
  1. namespace WindowsFormsApp1
  2. {
  3.     public partial class Form1 : Form
  4.     {
  5.         public Form1()
  6.         {
  7.             InitializeComponent();
  8.         }
  9.  
  10.         private void statusupdate()
  11.         {
  12.             label1.Text = "xClicx: " + progressBar1.Value;
  13.             label2.Text = "xKliXx l3ft: " + (10000 - progressBar1.Value);
  14.  
  15.             if (progressBar1.Value == 10000)
  16.             {
  17.                 MessageBox.Show("U R GOOD!", "eZ g3t ReKt");
  18.             }
  19.         }
  20.  
  21.         private void button1_Click_1(object sender, EventArgs e)
  22.         {
  23.             int a = 1;
  24.             try
  25.             {
  26.                 progressBar1.Value += a;
  27.             }
  28.  
  29.             catch
  30.             {
  31.                 progressBar1.Value = 10000;
  32.             }
  33.  
  34.             statusupdate();
  35.         }
  36.     }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement