title: VB Net - Pass data from Thread to Main GUI
body: <p>I've managed to get the data I want in a thread, however I'm having trouble getting my head around passing the data back into my main thread (GUI).</p>
  
  <p>I'm grabbing data from a network stream in a thread, then need to pass it to my main thread in order to pass to other classes etc.</p>
  
  <p>I've seen it mentioned to use backgroundworker for this, but as I'm expecting it to gather data periodically and never stop, I thought a separate thread for this would be best, but I'm very new to multithreading.</p>
  
  <p>If threading is the correct way to go, how can I pass data from it back to my main thread in order to use this for other stuff? I've seen delegates and events mentioned a lot but can't see how I'd pass data with these?</p>
  
  <p>Thanks</p>