Finding Window Postion in relation to the entire screen
-
hi, i have a real quick question. I just need to find the X,Y (0,0) for the location of my programs Window in relation to the entire Desktop. Reason being is i use a API call called GetPixel() that uses X,Y (location) as a overload...but its X,Y are global X,Y i.e the entire desktop. I need to transfer my X,Y inside my program over to Global Desktop X,Y's. is there a easy way to do this ? Thanks for your help, Time. If you need me to explain clearer please let me know Jesse M. The Code Project Is Your Friend...
-
hi, i have a real quick question. I just need to find the X,Y (0,0) for the location of my programs Window in relation to the entire Desktop. Reason being is i use a API call called GetPixel() that uses X,Y (location) as a overload...but its X,Y are global X,Y i.e the entire desktop. I need to transfer my X,Y inside my program over to Global Desktop X,Y's. is there a easy way to do this ? Thanks for your help, Time. If you need me to explain clearer please let me know Jesse M. The Code Project Is Your Friend...
-
Use Form.PointToScreen(). :)
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi