In .Net 2.0, take a look at BackgroundWorkerProcess. This provides a
simplified model for asynchrous processing with notification via the
asyncresult back to the main thread.
Peter
--
Site:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com
Short urls & more:
http://ittyurl.net
"Tomaz Koritnik" wrote:
> Is it possible to asynchronously call a method from worker thread so that
> this method would execute in main-thread? I'm doing some work in worker
> thread and would like to report progress to main thread to update some
> controls. But I'd like to do that asynchronously so that worker thread would
> not block until main thread finished updating and refreshing controls which
> take some time. Using invoke is out since it blocks worker thread until
> method finishes.
>
> regards
> Tomaz
>
>
>