Elias,
Well, you have to have a definition of what is foreign. Once you have
that, you can implement the IMessageFilter interface and then in the
PreFilterMessage, act on windows messages that are foreign to your app.
You would then pass this implementation to the AddMessageFilter method
on the Application class.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"news.microsoft.com" <la*****@lgwm.orgwrote in message
news:Op**************@TK2MSFTNGP02.phx.gbl...
Hello
How can I write a C# Windows Forms application so that it tells if it
receives foreign windows messages.
Foreign, say something like when another application takes its HWND and
issues a WM_APP+123 for example.
--
Elias