Sending data between threads

  • Thread starter Thread starter Mike Bird
  • Start date Start date
M

Mike Bird

I have a From based application that does background work in a worker
thread. I want to update the form form the thread, however; the form and
control instance members are not thread safe. My idea for a solution was to
create my own custom windows message, P/Invoke SendMessage to send a message
to the form. What I can figure out is how to send anything other than two
integers of data. I need to send a string.

Anyone have any ideas on how I might do this?

Thanks
 
Never mind, I was reading some other posts and found out about the Marshal
class and that was able to let me do what I needed.
 
Back
Top