Click here to Skip to main content
15,893,622 members
Home / Discussions / C#
   

C#

 
GeneralRe: To handle list view column width change Pin
Heath Stewart30-Apr-04 5:39
protectorHeath Stewart30-Apr-04 5:39 
GeneralID3 algorithm Pin
Member 75113929-Apr-04 10:14
Member 75113929-Apr-04 10:14 
GeneralRe: ID3 algorithm Pin
Heath Stewart29-Apr-04 10:34
protectorHeath Stewart29-Apr-04 10:34 
GeneralRun time change Pin
boruk29-Apr-04 10:09
boruk29-Apr-04 10:09 
GeneralRe: Run time change Pin
Heath Stewart29-Apr-04 10:26
protectorHeath Stewart29-Apr-04 10:26 
QuestionHow to make the return key to click the OK button? Pin
Daniel Stagg29-Apr-04 8:50
Daniel Stagg29-Apr-04 8:50 
AnswerRe: How to make the return key to click the OK button? Pin
Dave Kreskowiak29-Apr-04 8:55
mveDave Kreskowiak29-Apr-04 8:55 
GeneralRe: How to make the return key to click the OK button? Pin
Heath Stewart29-Apr-04 9:24
protectorHeath Stewart29-Apr-04 9:24 
GeneralSocket Chat?! Pin
Morten Kristensen29-Apr-04 7:50
Morten Kristensen29-Apr-04 7:50 
GeneralRe: Socket Chat?! Pin
Heath Stewart29-Apr-04 8:36
protectorHeath Stewart29-Apr-04 8:36 
GeneralRe: Socket Chat?! Pin
Morten Kristensen30-Apr-04 4:08
Morten Kristensen30-Apr-04 4:08 
GeneralCreating an Access database at runtine Pin
bsargos29-Apr-04 7:11
bsargos29-Apr-04 7:11 
GeneralRe: Creating an Access database at runtine Pin
Heath Stewart29-Apr-04 8:33
protectorHeath Stewart29-Apr-04 8:33 
GeneralRe: Creating an Access database at runtine Pin
Dave Kreskowiak29-Apr-04 8:37
mveDave Kreskowiak29-Apr-04 8:37 
GeneralControl Box does not close form Pin
Darryl Borden29-Apr-04 6:52
Darryl Borden29-Apr-04 6:52 
GeneralRe: Control Box does not close form Pin
Heath Stewart29-Apr-04 8:31
protectorHeath Stewart29-Apr-04 8:31 
GeneralClient / Server Pin
Bonsai200429-Apr-04 6:20
Bonsai200429-Apr-04 6:20 
GeneralRe: Client / Server Pin
Heath Stewart29-Apr-04 6:46
protectorHeath Stewart29-Apr-04 6:46 
GeneralRe: Client / Server Pin
Andy Brummer29-Apr-04 6:46
sitebuilderAndy Brummer29-Apr-04 6:46 
GeneralRe: Client / Server Pin
Dave Kreskowiak29-Apr-04 8:45
mveDave Kreskowiak29-Apr-04 8:45 
GeneralRe: Multi-threading in a web service Pin
mjmcinto29-Apr-04 6:16
mjmcinto29-Apr-04 6:16 
GeneralRe: Multi-threading in a web service Pin
Andy Brummer29-Apr-04 6:39
sitebuilderAndy Brummer29-Apr-04 6:39 
[edit]Doh. read web service as windows service. Please disregard. [/edit]

The system.timers.Timer is good for this. Add the timer to your service object. Then set the interval and assign the event in your constructor. Then you just need to start and stop the timer in your service start and stop events.
If you need to make absolutely sure that the timer will not be executing after you leave the stop event , you need to do your own thread syncronization, but in most cases you don't need to worry about it.
If you need to schedule multiple jobs look for the scheduled timer CP article I posted a few weeks ago.



If you don't kill me you will only make me stronger

That and a cup of coffee will get you 2 cups of coffee
GeneralRe: Multi-threading in a web service Pin
Heath Stewart29-Apr-04 6:49
protectorHeath Stewart29-Apr-04 6:49 
GeneralRe: Multi-threading in a web service Pin
mjmcinto29-Apr-04 12:44
mjmcinto29-Apr-04 12:44 
GeneralRe: Multi-threading in a web service Pin
Heath Stewart29-Apr-04 14:24
protectorHeath Stewart29-Apr-04 14:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.