Simple, non-blocking way to sleep?

Posted by OverTheRainbow on Stack Overflow See other posts from Stack Overflow or by OverTheRainbow
Published on 2010-02-10T14:45:03Z Indexed on 2010/05/23 8:00 UTC
Read the original article Hit count: 417

Filed under:
|
|

Hello

I googled for this and read some threads here, but I haven't found a simple way to have a VB.Net application sleep for a little while and still keep the application responsive:

Imports System.Net
Imports System.IO
Imports System.Text
Imports System.Text.RegularExpressions
Imports System.Threading.Thread

[...]

'How to keep screen frop freezing?
While True
  ListBox1.Items.Clear()

  ListBox1.Items.Add("blah")

  'Not much difference
  ListBox1.Refresh()

  'Wait 1mn
  Sleep(60000)
End While

Is there really no simple, non-blocking solution to have a VB.Net application wait for a few seconds?

Thank you.

© Stack Overflow or respective owner

Related posts about vb.net

Related posts about sleep