1 Replies - 146 Views - Last Post: 08 October 2012 - 06:27 PM Rate Topic: -----

#1 RobertM  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 08-October 12

Passing data from a form INTO a running thread

Posted 08 October 2012 - 11:29 AM

I have a vb.net (2010) form that starts a BackgroundWorker. I need to form to send data to the backgroundWorker periodically while it is running. I've seen several examples of sending the thread data when it starts, but not after it is already running. I've read up on delegates, but the examples always update the form from the thread. I need to go the other way. I need either the thread to pull data off the form or have the form push the data to the thread. Any suggestions?

Thanks!

Is This A Good Question/Topic? 0
  • +

Replies To: Passing data from a form INTO a running thread

#2 lar3ry  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 235
  • View blog
  • Posts: 961
  • Joined: 12-September 12

Re: Passing data from a form INTO a running thread

Posted 08 October 2012 - 06:27 PM

Have a look at the Thread.AllocateDataSlot Method
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1