471,075 Members | 1,253 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,075 software developers and data experts.

Wait command

Hi

Is there a wait or sleep command in vb.net?

Regards
Nov 20 '05 #1
5 64519
Try
----------------

System.Threading.Thread.CurrentThread.Sleep(1000)

----------------

This should sleep for 1000ms (1 sec)
Hope this helps,

Trev.
"John" <jo**@nospam.infovis.co.uk> wrote in message
news:e$**************@TK2MSFTNGP12.phx.gbl...
Hi

Is there a wait or sleep command in vb.net?

Regards

Nov 20 '05 #2
"John" <jo**@nospam.infovis.co.uk> schrieb
Hi

Is there a wait or sleep command in vb.net?


System.Threading.Thread.Sleep
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #3
Aha, me forgot that "Sleep" was a shared method. Now if I could only share
my sleep with someone else ;)

"Armin Zingler" <az*******@freenet.de> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
"John" <jo**@nospam.infovis.co.uk> schrieb
Hi

Is there a wait or sleep command in vb.net?


System.Threading.Thread.Sleep
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #4
"Codemonkey" <hu*********@hotmail.com> schrieb
Aha, me forgot that "Sleep" was a shared method. Now if I could only
share my sleep with someone else ;)


You don't need anyone - Sleep is shared. ;-)))
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #5
* "John" <jo**@nospam.infovis.co.uk> scripsit:
Is there a wait or sleep command in vb.net?


'System.Threading.Thread.Sleep(<milliseconds>)'.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Chang LI | last post: by
25 posts views Thread by BOOGIEMAN | last post: by
11 posts views Thread by Michi Henning | last post: by
4 posts views Thread by Terry Olsen | last post: by
8 posts views Thread by 4.spam | last post: by
1 post views Thread by Damien Byrne | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.