Saturday, March 24, 2012

wait 50 seconds

I want to

wait

50 seconds befor the execution of next line of code

what shuld I do

sujith

The way i do something like that is by Using ASP Ajax(http://ajax.asp.net/default.aspx?tabid=47). Use the timer control and set it to 50000 milliseconds. then put all the code you want to be executed after 50 seconds within the 'timer_tick' event. The code will execute every after 50 seconds. just remember to disable the timer control after the first 50 seconds otherwise the code will loop every other 50 seconds. Hope this helps.

Matt


Hi,

You can do this by using threading

Thread.Sleep = 1000 ( this is ms)

Amit


But his is not syntatically true in vb.net

i am not able to type thread

i have only

threading.SomeThing

:(

0 comments:

Post a Comment