trigger event in parent thread

Is there a way to trigger an event in a parent thread while the child thread is still running?

I can call a method when the child thread finishes using the asynch callback, but not while its running.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

of course there is.
One way that I have used for this type of situation is to actually create a *(global)* - not really global but lives in the scope of all threads- class that contains the Events. Then trigger events within this class from the child thread, and respond to them in the parent or other child threads.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
You have posted this question also in the VB.NET section with 500 points! This is usually not allowed here. Please use a pointer to the original question.

"What if my question fits more than one technical area?"
Diego PazosCommented:
Assuming the two threads are inside the same class, you can create an event in the class, subscribe to it in the parent thread, and trigger it from the child thread. You can even add parameters to the event to allow you to pass data between them.
brokeMyLegBikingAuthor Commented:
That sounds great! can you give me  a small sample, or point me to a link that shows some sample code?

What uKER described is excactly what I want to do. But i'm not sure how to declare a routine and subscribe that routine to a particular thread.

thx all!
brokeMyLegBikingAuthor Commented:
anyone have a sample?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.