TimerCallBack namespace

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have the following line code which won't compile:

System.Threading.TimerCallBack tmrdlgt = new TimerCallback(this.CountTime);

yet I have included the System.Threading namespace with the line:
using System.Threading;
at the top of my class definition. Where am I going wrong?
 
The error I am getting is:

The type or namespace name 'TimerCallBack' does not exist in the class or
namespace 'System.Threading' (are you missing an assembly reference?)
 
You spelled it incorrectly. It is System.Threading.TimerCallback, with
a lower case b.

Regards
Senthil
 
Back
Top