We have an application that uses a dual monitor setup – User A will work with Monitor 1, and user B will work with Monitor 2 simultaneously. Monitor 2 is a touch screen device.
Now, the problem is, when User A types something in his screen, if User B tries to do something, User A will end up in losing the focus from his window, which is disastrous.
What might be a good solution to preserve the focus on the window in Monitor 1, even if User B do something with Monitor 2?
It is possible with some elbow grease. Paste this code in the form that you show on the touch screen:
That makes sure that the form won’t steal the focus from the main form. Make it look like this: