now, go to "tools" and click on GroupBox. place it where you want it on the form. next, again in tools click "Timer" and place that in the form also. Dont worry, it will appear in a bar below the form. this is what it is supposed to do, since the timer is something that works in the background without any visual representation.
Now, double click "timer1" in the bar. You should see this now:
private void timer1_Tick(object sender, EventArgs e)
{
}
this is what the timer will do on every "tick". Imagine a clock that does something on every tick of the second hand. We are going to make ours change some colors in a neat fashion.
Go up to the block that has Form1_Load and type this:
in between these:
{
}
so we want this:
private void Form1_Load(object sender, EventArgs e)
{
timer1.Start();
}
|