Click here to Skip to main content
15,913,854 members
Home / Discussions / C#
   

C#

 
AnswerRe: Win Form - resize form problem Pin
Trapper-Hell19-Aug-09 20:49
Trapper-Hell19-Aug-09 20:49 
QuestionResource File Help Pin
Dushan12319-Aug-09 18:12
Dushan12319-Aug-09 18:12 
AnswerRe: Resource File Help Pin
Christian Graus19-Aug-09 18:23
protectorChristian Graus19-Aug-09 18:23 
Questionusing DOM how to identify the link that is clicked? Pin
Jacobb Michael19-Aug-09 17:54
Jacobb Michael19-Aug-09 17:54 
QuestionHealth monitoring server up or down and logging to database Pin
ramindya19-Aug-09 13:37
ramindya19-Aug-09 13:37 
AnswerRe: Health monitoring server up or down and logging to database Pin
Christian Graus19-Aug-09 15:36
protectorChristian Graus19-Aug-09 15:36 
QuestionBackground Worker Pin
spankyleo12319-Aug-09 12:14
spankyleo12319-Aug-09 12:14 
AnswerRe: Background Worker Pin
Luc Pattyn19-Aug-09 12:55
sitebuilderLuc Pattyn19-Aug-09 12:55 
Hi,

you could organize it like a simple loop (pseudo-code):
for(;;) {
    // do whatever you want to do periodically
    ...
    // now pause
    Thread.Sleep(5*60*1000);
}


All this could reside inside the DoWork handler of a BGW.

Alternatively, you could just use a System.Timers.Timer, that would cause your code (without loop and sleep!) to run periodically, with the risk of one iteration taking too long and being overrun by the next.

For both of these, you are not allowed to directly touch any GUI Controls, you need Control.Invoke; see here[^] for details.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.

GeneralRe: Background Worker Pin
spankyleo12320-Aug-09 9:54
spankyleo12320-Aug-09 9:54 
GeneralRe: Background Worker Pin
Luc Pattyn20-Aug-09 13:41
sitebuilderLuc Pattyn20-Aug-09 13:41 
AnswerRe: Background Worker Pin
PIEBALDconsult19-Aug-09 19:22
mvePIEBALDconsult19-Aug-09 19:22 
AnswerRe: Background Worker Pin
DaveyM6919-Aug-09 22:47
professionalDaveyM6919-Aug-09 22:47 
GeneralRe: Background Worker Pin
spankyleo12320-Aug-09 8:46
spankyleo12320-Aug-09 8:46 
GeneralRe: Background Worker Pin
spankyleo12320-Aug-09 11:59
spankyleo12320-Aug-09 11:59 
GeneralRe: Background Worker Pin
DaveyM6920-Aug-09 21:08
professionalDaveyM6920-Aug-09 21:08 
QuestionImage Resources - What is difference between Local Resource and Project Resource File Pin
shultas19-Aug-09 12:06
shultas19-Aug-09 12:06 
AnswerRe: Image Resources - What is difference between Local Resource and Project Resource File Pin
Daniel Grunwald19-Aug-09 13:28
Daniel Grunwald19-Aug-09 13:28 
GeneralRe: Image Resources - What is difference between Local Resource and Project Resource File Pin
shultas19-Aug-09 13:40
shultas19-Aug-09 13:40 
GeneralRe: Image Resources - What is difference between Local Resource and Project Resource File Pin
mustang8619-Aug-09 19:38
mustang8619-Aug-09 19:38 
GeneralRe: Image Resources - What is difference between Local Resource and Project Resource File Pin
btaz12518-Apr-11 16:20
btaz12518-Apr-11 16:20 
QuestionGraphicsPath.AddString Pin
xstoneheartx19-Aug-09 11:42
xstoneheartx19-Aug-09 11:42 
Questionc# text to wav volume Pin
mikeyman419-Aug-09 11:32
mikeyman419-Aug-09 11:32 
AnswerRe: c# text to wav volume Pin
Christian Graus19-Aug-09 15:38
protectorChristian Graus19-Aug-09 15:38 
QuestionConvert GlyphIndex to Unicode Pin
xstoneheartx19-Aug-09 11:30
xstoneheartx19-Aug-09 11:30 
QuestionModeless active window/class - Cannot access a disposed object. Pin
Natural_Demon19-Aug-09 9:05
Natural_Demon19-Aug-09 9:05 

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.