mouse position

  • Thread starter Thread starter Robert Chan
  • Start date Start date
R

Robert Chan

I have a form that is 2000x700 it is meant to be run across two monitors
I want to get the mouse position relative to the form not to the screen is
there any kind of way to reference the forms position on the screen, to tell
where the mouse is in relation to the form and so that I can know which part
of a panel someone clicked on.
thanks in advance
--rob
 
You just have to convert from screen coordinates to client area coordinates....


I hope this help...
 
Look (closer) at the Control.MouseMove event (and other mouse events)
The coordinates 'are' relative to form (also called client coordinates).
Where did you get these screen coordinates ?
Are do things go different on a multi monitor system ?
 
Back
Top