R
Rajesh Abraham
I have a timer in my Windows Service project and I am
trying to do some processing on the tick event of the
timer but this event does not seesms to be raised. Below
is some code segment. Any Idea?
Thanks,
Rajesh Abraham
-----Code Below------
private void InitializeComponent()
{
this.components = new
System.ComponentModel.Container();
this.timerTerminator = new
System.Windows.Forms.Timer(this.components);
//
// timerTerminator
//
this.timerTerminator.Enabled =
true;
this.timerTerminator.Tick += new
System.EventHandler(this.timerTerminator_Tick);
//
// TerminatorService
//
this.ServiceName = "TermSrv";
}
private void timerTerminator_Tick(object sender,
System.EventArgs e)
{
System.IO.File.Create(@"c:\timertick.txt");
TerminatorBis.Terminate();
}
trying to do some processing on the tick event of the
timer but this event does not seesms to be raised. Below
is some code segment. Any Idea?
Thanks,
Rajesh Abraham
-----Code Below------
private void InitializeComponent()
{
this.components = new
System.ComponentModel.Container();
this.timerTerminator = new
System.Windows.Forms.Timer(this.components);
//
// timerTerminator
//
this.timerTerminator.Enabled =
true;
this.timerTerminator.Tick += new
System.EventHandler(this.timerTerminator_Tick);
//
// TerminatorService
//
this.ServiceName = "TermSrv";
}
private void timerTerminator_Tick(object sender,
System.EventArgs e)
{
System.IO.File.Create(@"c:\timertick.txt");
TerminatorBis.Terminate();
}