I'm sure this is a pretty straight forward question. I'm writing a small windows forms app using C++/CLI. When the form initializes, I start a thread that will process some code. When the code in the thread is executed, I want the thread to somehow update the text in a statusbar in the bottom of the window. So I was thinking something like this:
- I create an event.
- Then I create the Thread that will do some processing.
- When the processing is done, fire an event that makes the text in the statusbar update.
Is this a reasonable way to go? If so, how do I update the statusbar from within the thread? Maybe there is a smarter way to acheive this?
Would be very thankful for some advice on this.