Connecting Tech Pros Worldwide Forums | Help | Site Map

Raising an event in the same thread context as the UI

Steve Wilkinson
Guest
 
Posts: n/a
#1: Jan 17 '06
I have a managed class (.NET 2.0) which has an internal thread. From within
this thread events are being raised to the hosting UI. As the event is
raised under the context of the internal thread I have to use the Invoke
method within the UI(Windows Form) to ensure the event is handled correctly
and the UI doesn't freeze.

Is there anyway I can raise the event from the class in a manner that is
safe for the UI to consume without having to use Invoke method within the UI.

Thanks

Steve

Closed Thread


Similar .NET Framework bytes