send message from worker thread to GUI thread

Hello everyone. I am new to .NET C++ programming. I am currently trying to write an application program which reads a file and displays some data on to the screen. The application also displays # of bytes read which should update every two seconds. I have my main GUI threat and created a worker thread which reads in a file. Now i have following question...
1. How do I send message to notify GUI thread that x numbers of bytes has been read. I am not sure/dont know how to send a message. Basically i want to send a message from worker thread with # of bytes read as payload so that when gui thread receives this particular message, it can update the label.
Any tips? Thanks in advance...
Use a BackgroundWorker component. See http://msdn.microsoft.com/en-us/library/system.componentmodel.backgroundworker.aspx for detailed information. It has several events that will help you easily perform what you need.
Topic archived. No new replies allowed.