Peter,
When you say all forms, do you mean all forms in your application? If
this is the case, then I would say yes. You could do it with a windows
hook, or by handling all windows messages that go to the forms, but there is
an easier way. All you have to do is have one event handler method, and
attach it to all of the form's Enter and Leave events. That way, you have
one handler that handles the event for everything that it is attached to.
This is where the beauty of the event model really shines, because it
allows you to compact code in this manner, and write more generic routines,
as you want to do in your situation.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Peter Schneider" <No****@NoMail.de> wrote in message
news:uT**************@TK2MSFTNGP10.phx.gbl...
Hi there
it is possible to track all "enter" and "leave" messages from all Forms
controls with one routine?
Peter