-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathForm4.cs
48 lines (40 loc) · 1.05 KB
/
Form4.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace ASkey_Sinhala
{
public partial class Form4 : Form
{
public Form4()
{
InitializeComponent();
}
private void pictureBox1_Click(object sender, EventArgs e)
{
}
private void Form4_Load(object sender, EventArgs e)
{
label1.Text = "100";
timer1.Start();
timer1.Interval = 100;
}
private void timer1_Tick(object sender, EventArgs e)
{
if (label1.Text == "0")
{
timer1.Stop();
this.Close();
}
else
{
label1.Text = (Convert.ToInt32(label1.Text) - 1).ToString();
progressBar1.Value = 100-Convert.ToInt32(label1.Text);
}
}
}
}