ramone Posted October 5, 2005 Posted October 5, 2005 how can i make a method to wait n seconds and then resume execution?? public sub blah() 'statements 'wait one second or two... 'resume execution end sub thank you =) Quote
techmanbd Posted October 5, 2005 Posted October 5, 2005 system.threading.thread.sleep(1000) this = 1 sec. 1000ms = 1 sec Quote Live as if you were to die tomorrow. Learn as if you were to live forever. Gandhi
thenerd Posted October 6, 2005 Posted October 6, 2005 Sometimes, it's better to do 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. Quote
ramone Posted October 6, 2005 Author Posted October 6, 2005 thanks for this and for the past one :D ;) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.