Oct 5, 2005 #1 R 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 =)
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 =)
Oct 5, 2005 #2 T techmanbd Junior Contributor Joined Sep 10, 2003 Messages 397 Location Burbank, CA system.threading.thread.sleep(1000) this = 1 sec. 1000ms = 1 sec
Oct 5, 2005 #3 T thenerd Centurion Joined Jan 22, 2005 Messages 154 Location Northern New Jersey 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.
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.
Oct 5, 2005 #4 R ramone Freshman Joined Sep 29, 2005 Messages 26 thanks for this and for the past one