Tomaz,
If you want to have some sort of notification that is visual, then
ultimately, at some level, you will have to call the Invoke method to make
the call to update the UI.
You can have your component fire events to indicate progress, however,
the handlers will have to eventually call Invoke because the event being
fired is not on the UI.
If you check out Juval Lowy's book, "Programming .NET Components", there
is a section on events and multithreading, along with a utility class
(EventsHelper) which will take an implementation of ISynchronizeInvoke and
perform the event firing on the appropriate thread.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Tomaz Koritnik" <no****@nospam.com> wrote in message
news:ja********************@news.siol.net...
I have a worker thread doing some long calculation and I'd like to report
progress (percent done,...). One easy way it to call Control.Invoke(). But
is there another way of doing this without using controls that are
associated with window handles?
regards
Tomaz