I don't know how to pass data from a child thread to the parent thread. I want to write a child thread that is reading data from a serial port and passes the data to the parent thread that updates a TextBox. I think I have to use callback with delegates, but I don't know how to do that. Does anybody have a code sample in C#.NET or C++.NET? If would be very grateful if somebody could help me.
V
vikingsimon
@vikingsimon
Posts
-
Passing data from a child thread -
Passing data from a child threadI don't know how to pass data from a child thread to the parent thread. I want to write a child thread that is reading data from a serial port and pass the data to the parent thread that updates a TextBox. I think I have to use callback with delegates, but I don't know how to do that. Does anybody have a code sample in C#.NET or C++.NET? If would be very grateful if somebody could help me.