I would like to have a timer that will delay for 5 seconds between 2 subroutines in vb.net 2005. Is it possiple? And how? Which command of timer should I use? Any example please? Any help will be much appreciating. Thank you so much in advanced.
I'm unclear on what you want. Do you want a 5 second delay between the execution of 2 subroutines? If so you can use System.Threading.Thread.Sleep() to do that. Just pass the number of milliseconds you want the thread to stop execution, in this case 5000 (5 seconds):
System.Threading.Thread.Sleep(5000)
I used to rock and roll every night and party every day. Then it was every other day. Now I'm lucky if I can find 30 minutes a week in which to get funky. - Homer Simpson
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.