November 3rd, 2009, 06:50 PM
...You probably do not have a control named 'label1'. That was just an example.
Honestly, I think you need to take a step back and spend some time learning the fundamentals.
November 3rd, 2009, 05:40 PM
You did not do it like I said. You have some minor errors, and a namespace with a name of "Timer_2" is kind of weird. Here is one problem:
_timer.Tick += timer_Tick;
You are assigning a...
November 3rd, 2009, 05:26 PM
That would be a problem in your code. Why don't you post it so I can take a look. You should get used to handling errors like this so that you can learn the ins and outs of writing C# applications.
November 3rd, 2009, 05:05 PM
It's not too bad. Here is a sample off the top of my head:
class Form1 : Form
{
Timer _timer;
int _tickCount;
public Form1( )
November 3rd, 2009, 04:46 PM
Well, have you tried yet? It is pretty simple. The Timer class exposes an event called "Tick" which fires on every tick of the timer. So, set the timer duration, hook into the Tick event, start...