Hi, is there any function in .net that will hold the program execution for several seconds, like we use sleep or wait in C/Unix.
.net does have sleep or wait function, but it seems they involves threads.
What I want to do is just to wait 5 seconds, then close the form if the user does not do that. But I hope I do not have to put a timer on the form. I just want a simpler command.
Any hints will be appreciated.
Thanks!
.net does have sleep or wait function, but it seems they involves threads.
What I want to do is just to wait 5 seconds, then close the form if the user does not do that. But I hope I do not have to put a timer on the form. I just want a simpler command.
Any hints will be appreciated.
Thanks!