title: Asking tutorial for VB.NET Thread
body: <p>I have a class named TestClass</p>
  
  <pre><code>Public Class TestClass
  
      Private _Count As Integer
  
  
      Public ReadOnly Property Count() As Integer
          Get
              For i As Integer = 0 To 999999999
                  Threading.Thread.Sleep(100)
              Next
  
              Return 100
          End Get
      End Property
  
  End Class
  </code></pre>
  
  <p>Form the main form, I call the class. Here is my code:</p>
  
  <pre><code>Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
      Dim tg As New TestClass
      MsgBox(tg.Count)
  
  End Sub
  </code></pre>
  
  <p>When I call <code>tg.Count</code> from main form, the main form will become not responding. How to prevent my form from not responding. The user can access other menu rather than waiting for the result. Can anyone help me?</p>