wait n seconds

ramone

Freshman
Joined
Sep 29, 2005
Messages
26
how can i make a method to wait n seconds and then resume execution??

Visual Basic:
public sub blah()

'statements

'wait one second or two...

'resume execution

end sub

thank you =)
 
Sometimes, it's better to do

Visual Basic:
for x as integer = 1 to 10
system.threading.thread.currentthread.sleep(100)
application.doevents
next

If you simply sleep, it will cause the form to become unresponsive.
 
Back
Top