Today I saw two separate posts on pretty much the same question. How can you determine if the foreground window changes in a WinMo application? Moreover, how can you determine if the new foreground window is your own, or in some other process? My initial thoughts were to do some work in the Form’s Deactivate event, but that would lead to having to plumb it into every Form, and then you’d still need special case handlers for MessageBoxes and Dialogs and it would be an unmaintainable pain in the ass. I decided to put some time aside this afternoon and see if I could come up with a better solution, and what I came up with is outlined in a new article entitled ‘Determining Form and Process Changes in Windows CE‘. It’s available over in the Archives.