Click here to Skip to main content
15,885,113 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I'm unable to move the mouse from the primary monitor to the secondary monitor in the left to right direction.I observed that moving the mouse to the left of the primary monitor actually makes it appear on the right of the secondary monitor. So then, how can you make it work vice versa i.e. primary-right to secondary-left?

I need to approach using c# application not through windows display settings.please guide us if you faced this issue
Thanks in advance


What I have tried:

No clue to approach using c#.please guide us to sample application to achieve this.
Posted
Updated 27-Jun-19 21:20pm

1 solution

The problem is that you have your monitors set up wrong: Windows thinks they are in the wrong places, so it moves the mouse as you have told it.
Me? I'd set it right in Windows display settings, because it's a one-off change that is applicable to just that one system and no other.

Can you do it in C#? Possibly, but I've never tried (nor do I want to play with it). This may help: winforms - How do I enable a second monitor in C#? - Stack Overflow[^] If you can enable it, you should be able to set where it is, but the link at least gives you the API references you will need.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900