Page Stats
Visitor: 165
The Timer control is used to execute commands for every tick of time which is specified with an interval. For example, if you want to print your name for every 5 seconds, then you can use the Timer control.
enabled interval
private void timer1_Tick(object sender, EventArgs e) { progressBar1.Value = progressBar1.Value + 2; if (progressBar1.Value == 100) { timer1.Enabled = false; this.Hide(); Form2 f2 = new Form2(); f2.Show(); } }