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,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top