By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,816 Members | 2,151 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,816 IT Pros & Developers. It's quick & easy.

Pausing Between Loops

P: n/a
How can I add a 1 second pause between each loop iteration?

Thanks.
Nov 21 '05 #1
Share this Question
Share on Google+
7 Replies


P: n/a
System.Threading.Thread.CurrentThread.Sleep(1000)

But why do you want to do this?

Greetz Peter

"Sarah" <sa********@powertechcanada.com> wrote in message
news:9ouyd.14421$KO5.5470@clgrps13...
How can I add a 1 second pause between each loop iteration?

Thanks.

Nov 21 '05 #2

P: n/a
good question :)

--
http://gani.blogspot.com
"Peter Proost" <pp*****@nospam.hotmail.com> wrote in message
news:%2***************@TK2MSFTNGP12.phx.gbl...
System.Threading.Thread.CurrentThread.Sleep(1000)

But why do you want to do this?

Greetz Peter

"Sarah" <sa********@powertechcanada.com> wrote in message
news:9ouyd.14421$KO5.5470@clgrps13...
How can I add a 1 second pause between each loop iteration?

Thanks.


Nov 21 '05 #3

P: n/a
Take a look at Thread.Sleep()

"Sarah" <sa********@powertechcanada.com> wrote in message
news:9ouyd.14421$KO5.5470@clgrps13...
How can I add a 1 second pause between each loop iteration?

Thanks.

Nov 21 '05 #4

P: n/a
"Sarah" <sa********@powertechcanada.com> schrieb:
How can I add a 1 second pause between each loop iteration?


\\\
Imports System.Threading
..
..
..
For...
...
Thread.Sleep(1000)
Next...
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #5

P: n/a
>
\\\
Imports System.Threading
.
.
.
For...
...
Thread.Sleep(1000)
Next...
///


This is inside a loop

Cor
Nov 21 '05 #6

P: n/a

"Cor Ligthert" <no************@planet.nl> wrote
For...
...
Thread.Sleep(1000)
Next...
///


This is inside a loop

What an astute observation of the obvious!

<he he>
LFS
Nov 21 '05 #7

P: n/a
Cor,

"Cor Ligthert" <no************@planet.nl> schrieb:
Imports System.Threading
.
.
.
For...
...
Thread.Sleep(1000)
Next...
///


This is inside a loop


Re-read the OP's post:

| How can I add a 1 second pause between each loop iteration?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #8

This discussion thread is closed

Replies have been disabled for this discussion.