Hi i want to know when user changed the foreground Window ..
So i want soemthing like a callback.. that will call me when windows is about to send a message to application that she now has focus..
Any ideea Any function to interop with or.. Please help guys!
btw.. not threads allowed

hooking other applications messages Challenge
PKSpence
Bjalle
VisionSolutions
Windows Hooks in the .NET Framework.
Tewks
siddharth chaudhry
Bret Pehrson
MSzinger
If you check this with an interval, you can react on changes.
Friedrich von dem Storm
Check into WH_SHELL ...hook.
WM_ACTIVATE.
zoom14151
yes like when a user switches a window .. i want to be noticed too..
Can that be done