Click here to Skip to main content
15,892,797 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how do i run a thread continuously in windows services.
Along with the main thread, i want to run another for checking purpose.
Posted
Comments
Joezer BH 1-May-13 5:01am    
:idea: So, go ahead and do it ...

To run a thread continuously ,you have to used timer control .Inside the timer click event you can write or put the checking code and this code can be run using thread or as your requirement.

For timer control, you can check properties like enable=true and put the interval.
 
Share this answer
 
use the system.threading.timer class to specify the method in which u have to do work, the start time of timer & the time in miliseconds.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900