Daylor,
If you are posting to the thread, and not to a specific window, then you
will have to have something that implements the IMessageFilter interface,
and then pass that implementation to the static AddMessageFilter method on
the Application class, so it can handle the message that comes in on the
thread.
From the other thread, you will have to use the PostThreadMessage API
method through the P/Invoke layer.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Daylor" <ro******@hotmail.com> wrote in message
news:bs**********@news2.netvision.net.il...
if im using a form on the reciving thread.
u recommend to use the OnNotifyMessage event of the form
and postmessage from the sender thread , or there is a nicer way ?
"Dmitriy Lapshin [C# / .NET MVP]" <x-****@no-spam-please.hotpop.com> wrote
in message news:uC**************@TK2MSFTNGP10.phx.gbl... Seems that the Win32 API is the only choice. But I can confirm it works
pretty well in .NET.
--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE
"Daylor" <ro******@hotmail.com> wrote in message
news:bs**********@news2.netvision.net.il... how , can i post message to other thread in net ?
is there somthing with net that i can do ?
or i need 2 use win32 api's ?