The easiest way would be an asynchronous message call. Create a delegate
that points to the method you want to invoke asynchronously, and call
BeginInvoke() on the delegate. This will return control immediately
while the asynchronous call executes in another thread (not necessarily
thread 1, 2 or 3 tho.)
Greetings,
Wessel
-----Original Message-----
From: roni [mailto:ro******@hotmail.com]
Posted At: Monday, April 11, 2005 10:10 PM
Posted To: microsoft.public.dotnet.framework.aspnet
Conversation: tell other thread to execute method
Subject: tell other thread to execute method
hi.
i have applcation in net.
in that application i have 3 threads.
1- main thread with message loop and form
2. thread with message loop and form
3. thread with message loop and form
now ,i want thread 2 to tell thread 3 to exceute method in async way :
how can i do that ?
if i will use the asnyc call through NET , that thread that will exceute
the
method will be
thread from thread pool.
any ideas ?