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.
Is this file still available? I reviewed it yesterday and it seemed to be a good fit for a task that I have been asked to address in a couple of our scanners that are shared between multiple applications. Thanks.
LikeLike
Yep, it’s in the archives. I’ve updated the link above.
LikeLike