Cross-thread GUI call



Hi everyone,

Is it safe to call a GUI control's members directly from another thread.
That is, if I launch a background thread when the user clicks a button on my
form, can I safely retrieve info from one of its controls on that thread. I
assume that behind the scenes the call will occur back on the GUI thread
which should be fine since I have a "Work in progress" dialog running at the
time (so its message pump can handle the cross-thread call accordingly).
AFAIK then, synchronization shouldn't be an issue under these circumstances.
Can someone confirm this is safe. Thanks for your help.


.