473,395 Members | 1,516 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Wait command

Hi

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

Regards
Nov 20 '05 #1
5 64691
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Chang LI | last post by:
I tried to launch "python.exe test.py" in another program. After the launch the console was showed and exited on Windows. I want the console stay there. Is there a Python statement to wait an event...
25
by: BOOGIEMAN | last post by:
I've just finished reading Python turtorial for non-programmers and I haven't found there anything about some usefull commands I used in QBasic. First of all, what's Python command equivalent to...
11
by: Michi Henning | last post by:
Hi, I'm calling Monitor.Wait() from a console event handler. It's not working -- the call to Wait() immediately causes the process to exit. Is it impossible for some reason to call Wait() from...
4
by: Terry Olsen | last post by:
I have loop that calls a Sub that runs the following code: Dim WinZip As System.Diagnostics.Process Dim args As String = " -Pru -ex " & lblFolder.Text & "\" & PCName & ".zip @""" & appPth &...
8
by: 4.spam | last post by:
Hello. WinXP, db2 v8.2.7 When I use UPDATE COMMAND OPTION USING <any_switchON(or OFF) it seems that this command has absolutely no effect on these switches since command LIST COMMAND...
1
by: Damien Byrne | last post by:
Hello, I am new to python. I am using the os module to run a command in a bashshell. However I need this process to complete before continuing. Is there a command that will wait for this process...
4
by: jhatch2007a | last post by:
I have just started learning visual basic 2005. I tried entering the command: Wait(1000) in order for the program to wait for 1 second before proceeding, but it rejected this saying Wait wasn't...
2
by: black_13 | last post by:
how do i exec a command (such as xcopy) from with win32 python and wait on that command to come to completion? and also cleanly terminate the command shell? thanks black_13
0
by: coltrane | last post by:
I am just learning to use asynchronous ADO commands and I would like to wait on the BeginExecuteReader() IAsyncResult wait handle. When I use WaitHandle waitHandle =...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.