Thread Synchronization updating form

  • Thread starter Thread starter Claire
  • Start date Start date
C

Claire

When we wanted to update a vcl window from a thread in Delphi, we needed to
call the Synchronize method. This would make sure that the thread would
wait to synchronze with the process before attempting to update a control.
Ive a status bar on my main form who's text is updated during thread
activity.
I assume i have to do something similar in C#. Can someone show me how to do
it please?

claire
 
Hi,

Yep, it;s Control.Invoke you can use any control defined in the UI thread.

cheers,
 
Back
Top