That link describes a messagewindow class that can only listen for
messages that the class itself creates. It won't work for what you
require as you are not generating the messages.
It seems that controls and forms in .net (desktop, not sure about
compact framework) do provide a wndproc method that you can override.
http://www.thescripts.com/forum/thread229459.html
Or you can use the NativeWindow class as Charles Petzold describes in
his article here:
http://www.charlespetzold.com/pwcs/NativeWindow.html
HTH
Matt
> i found good sample application to handle the windows events , check
> this link
>
> http://samples.gotdotnet.com/quickstart/CompactFramework/doc/messagewindow.aspx
DJMatty - 26 Apr 2006 05:32 GMT
My mistake,
It seems that those are all desktop framework classes and methods, so
you will need to use messagewindow, which is a .netcf class. It won't
let you monitor o/s messages but I guess it should be ok for your
messages...
Sorry
Matt