title: How to load items from text file into listbox using multiple thread
body: <p>I'm currently using following code to load text file items into listbox in one of my application and it works but the size of that text file is more than 10mb. so the application stuck for few seconds at the time of loading items into listbox. </p>
  
  <p>once the item get loaded then it works fine. so is there any way to reduce the loading time and prevent application from hanging.</p>
  
  <pre><code>Public Sub loadfiles()
      Dim systemdrv As String = Mid(Environment.GetFolderPath(Environment.SpecialFolder.System), 1, 3)
      Dim r As IO.StreamReader
      r = New IO.StreamReader(systemdrv + "temp\test.txt")
      While (r.Peek() &gt; -1)
          ListBox2.Items.Add(r.ReadLine)
      End While
      r.Close()
  End Sub
  </code></pre>
  
  <p>I read some were that using multiple threads can solve the problem. so i try few thing but failed every time...</p>