wpf - C# mouse position returning bad screen coordinates -


recently i've been trying screen coordinates(using dual monitor) based on mouse position. i've tried :

  1. system.windows.forms.control.mouseposition;
  2. mouse.getposition()
  3. control.pointtoscreen

all methods return bad coordinates in application, example, when should 1262 x shows 1576 x etc. (all cordinates 1.25 bigger real ones).

i've tried application on other computers , works fine, tried same resolution other computers, changed icon scaling well, no luck.

what can wrong ?

thanks.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -