|
-
Dec 27th, 2002, 12:58 PM
#10
Re: SOLVED
Originally posted by Xmas79
VB Code:
Dim TimeNow As New DateTime()
TimeNow = Now
While (Now.Subtract(TimeNow).Seconds < 10)
'Wait for timeout...Do nithing...
End While
If you execute this on the same thread as the process you are waiting for then it probably wont be much better than sleep. You should at least have an Application.DoEvents in the loop. Better yet you can use a delegate or threading so that your application doesn't hang. If I'm wrong and it works fine then sorry
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|