Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- }
- private void button1_Click(object sender, EventArgs e)
- {
- timer1.Start();
- if (progressBar1.Value < 100)
- {
- progressBar1.Value += 1;
- }
- else
- {
- progressBar1.Value = 0;
- }
- }
- private void button2_Click(object sender, EventArgs e)
- {
- timer1.Stop();
- }
- private void button3_Click(object sender, EventArgs e)
- {
- timer1.Stop();
- progressBar1.Value = 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement