-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathForm1.cs
More file actions
28 lines (26 loc) · 865 Bytes
/
Copy pathForm1.cs
File metadata and controls
28 lines (26 loc) · 865 Bytes
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
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 progressbar_hour_min_sec{
public partial class Form1 : Form{
public Form1() {
InitializeComponent();
}
private void timer1_Tick(object sender, EventArgs e) {
label5.Text= DateTime.Now.Hour.ToString();
label6.Text = DateTime.Now.Minute.ToString();
label7.Text = DateTime.Now.Second.ToString();
progressBar1.Value = DateTime.Now.Hour;
progressBar2.Value = DateTime.Now.Minute;
progressBar3.Value = DateTime.Now.Second;
}
private void button1_Click(object sender, EventArgs e) {
this.Close();
}
}
}