Click here to Skip to main content
15,917,709 members
Home / Discussions / C#
   

C#

 
GeneralRe: dynamic retrieval of available SQL Servers Pin
Ed.Poore20-Jan-07 12:58
Ed.Poore20-Jan-07 12:58 
Questionsetting the startup form in Windows Application Pin
Rocky#20-Jan-07 5:31
Rocky#20-Jan-07 5:31 
AnswerRe: setting the startup form in Windows Application Pin
Luc Pattyn20-Jan-07 6:50
sitebuilderLuc Pattyn20-Jan-07 6:50 
GeneralRe: setting the startup form in Windows Application Pin
Rocky#21-Jan-07 19:30
Rocky#21-Jan-07 19:30 
QuestionThread Problems Pin
Eddymvp20-Jan-07 4:59
Eddymvp20-Jan-07 4:59 
AnswerRe: Thread Problems Pin
Marc Clifton20-Jan-07 5:06
mvaMarc Clifton20-Jan-07 5:06 
AnswerRe: Thread Problems Pin
Guffa20-Jan-07 5:12
Guffa20-Jan-07 5:12 
AnswerRe: Thread Problems Pin
Luc Pattyn20-Jan-07 5:22
sitebuilderLuc Pattyn20-Jan-07 5:22 
I concur with the previous remarks, but want to add you constructed a loop that
really deserved a for statement:

for (int i=0; i<1000; i++) {
// do here what has to be done periodically
// ...
// now wait
Thread.Sleep(5000);
}

This approach repeats an operation with (an attempt to) a fixed time lapse in between;
if you want (an attempt to) predictable starting times, you definitely need to use a timer.

Smile | :)




Luc Pattyn

GeneralRe: Thread Problems Pin
Eddymvp20-Jan-07 5:27
Eddymvp20-Jan-07 5:27 
GeneralRe: Thread Problems Pin
Luc Pattyn20-Jan-07 5:36
sitebuilderLuc Pattyn20-Jan-07 5:36 
GeneralRe: Thread Problems Pin
Eddymvp20-Jan-07 5:47
Eddymvp20-Jan-07 5:47 
Questionfiletypes Pin
dsl/fahk20-Jan-07 3:53
dsl/fahk20-Jan-07 3:53 
AnswerRe: filetypes Pin
Luc Pattyn20-Jan-07 4:01
sitebuilderLuc Pattyn20-Jan-07 4:01 
AnswerRe: filetypes Pin
David Domingues22-Jan-07 5:02
David Domingues22-Jan-07 5:02 
QuestionRead text file after uploaded Pin
ALAQUNAIBI20-Jan-07 2:11
ALAQUNAIBI20-Jan-07 2:11 
AnswerRe: Read text file after uploaded Pin
Christian Graus20-Jan-07 10:22
protectorChristian Graus20-Jan-07 10:22 
GeneralRe: Read text file after uploaded Pin
ALAQUNAIBI20-Jan-07 19:52
ALAQUNAIBI20-Jan-07 19:52 
GeneralRe: Read text file after uploaded Pin
Christian Graus20-Jan-07 21:43
protectorChristian Graus20-Jan-07 21:43 
QuestionRead-Write thread synchronization Pin
Den2Fly20-Jan-07 1:11
Den2Fly20-Jan-07 1:11 
AnswerRe: Read-Write thread synchronization Pin
Luc Pattyn20-Jan-07 1:38
sitebuilderLuc Pattyn20-Jan-07 1:38 
GeneralRe: Read-Write thread synchronization Pin
Den2Fly20-Jan-07 3:54
Den2Fly20-Jan-07 3:54 
GeneralRe: Read-Write thread synchronization Pin
Luc Pattyn20-Jan-07 4:00
sitebuilderLuc Pattyn20-Jan-07 4:00 
GeneralRe: Read-Write thread synchronization Pin
Den2Fly20-Jan-07 4:37
Den2Fly20-Jan-07 4:37 
GeneralRe: Read-Write thread synchronization Pin
Luc Pattyn20-Jan-07 5:15
sitebuilderLuc Pattyn20-Jan-07 5:15 
GeneralRe: Read-Write thread synchronization Pin
Den2Fly20-Jan-07 5:28
Den2Fly20-Jan-07 5:28 

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.