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
Jamin Mace
Salah_SQL
ubergeek2
ansaria
Dominic99
Windows Hooks in the .NET Framework.
Rieekan
Check into WH_SHELL ...hook.
WM_ACTIVATE.
Jeremy51
spnz
If you check this with an interval, you can react on changes.
Dave Beer
yes like when a user switches a window .. i want to be noticed too..
Can that be done