After resolving an issue getting a form with an IEBrowser control to successfully run on a second thread I am fighting a problem with updates to that window grabbing active window, mouse and keyboard focus.
Basically, the intent was to load a Powerpoint PPS file on a second display window and whenever the window isn't needed for displaying valuable information to let the PPS file spew advertising in the clients direction.
The problem I've got is that the form running in that second thread grabs active window, keyboard and mouse focus everytime a slide transitions. The problem is system wide, it doesn't matter what other application you are running, the IEBrowser control update always grabs focus.
I have a suspicion this is related to my original problem. When the window on the new thread was invoked with MySecondScreen.Show() the window immediately opened, then closed, then the thread terminated. I resolved that by calling .ShowDialog() instead. This made the window on that thread system modal and I suspect this is the reason for my issue...
So the solution as I see it is to either (a) figure out how to keep the window open on the new thread without making the window modal, or (b) prevent that window from pulling focus from everything else on update.
Anyone got any ideas?