I work in the automotive sector and part of the project task is to simulate a touch screen on the vehicle's Head Unit. I am displaying the simulated video output in a window on my PC's desktop.
I have created a windows form application using C# (Visual Studio 2015) that is transparent by design so it does not allow clicks through to the content beneath. The window is fixed at the size of the video output and is manually aligned so as to be on top of the the simulated video output. I can get the mouse co-ordinates and mouse button states as long as the mouse pointer is within the window. These values are written to the window's title bar and also to a small .ini file that is read by the CAN simulation which then assigns the values to the appropriate CAN signals.
This works fine on my PC at work and at home (they both have Visual Studio 2015) but copying the .exe file to other work colleagues' PCs gives different behaviour in that I can click through the window onto the desktop below and the mouse co-ordinates are not being written to the title bar or the .ini file.
I am at a loss to understand why the behaviour of the program is different between PC's that have the same version of .NET framework installed (4.61).
Can anyone offer any insights, please?