Hi,

I would like to start a sub in 5 seconds from now. The sub will need to perform only once. Should I use the timer event or there better way ?

Thank

Dillen

Recommended Answers

All 3 Replies

A quick responce without knowing all the requirements of your application.

Yes - use a timer - its the only way that I know of to measure time intervals

Regards,

Steve

Thanks

Hi,

I would like to start a sub in 5 seconds from now. The sub will need to perform only once. Should I use the timer event or there better way ?

Thank

Dillen

If u didn't want to use timer, u can use sleep...
System.Threading.Thread.Sleep(milliseconds)
Ex :
System.Threading.Thread.Sleep(5000) -> Delay for 5 seconds

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.