Cross-thread GUI call
- From: "Jake Weller" <no_spam@xxxxxxxxxxx>
- Date: Fri, 20 Oct 2006 17:43:40 -0400
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.
.
- Follow-Ups:
- Re: Cross-thread GUI call
- From: Chris Bordeman
- Re: Cross-thread GUI call
- From: Marc Gravell
- Re: Cross-thread GUI call
- Prev by Date: Re: How to get an object to inform progress via a form's status bar?
- Next by Date: Re: if (this.DesignMode) return ; Not working
- Previous by thread: Breaking the 2GB barrier
- Next by thread: Re: Cross-thread GUI call
- Index(es):