Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace WindowsFormsApp1
- {
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- }
- private void statusupdate()
- {
- label1.Text = "xClicx: " + progressBar1.Value;
- label2.Text = "xKliXx l3ft: " + (10000 - progressBar1.Value);
- if (progressBar1.Value == 10000)
- {
- MessageBox.Show("U R GOOD!", "eZ g3t ReKt");
- }
- }
- private void button1_Click_1(object sender, EventArgs e)
- {
- int a = 1;
- try
- {
- progressBar1.Value += a;
- }
- catch
- {
- progressBar1.Value = 10000;
- }
- statusupdate();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement