467,892 Members | 1,879 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,892 developers. It's quick & easy.

mouse position

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
Nov 15 '05 #1
  • viewed: 4174
Share:
2 Replies


You just have to convert from screen coordinates to client area coordinates....
I hope this help...
Nov 15 '05 #2
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 ?
"Robert Chan" <ro*********@hotmail.com> wrote in message
news:uq**************@tk2msftngp13.phx.gbl...
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

Nov 15 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by punkin | last post: by
4 posts views Thread by Jay | last post: by
3 posts views Thread by Emjay | last post: by
13 posts views Thread by Lars Netzel | last post: by
19 posts views Thread by wmanzo | last post: by
3 posts views Thread by Morten Snedker | last post: by
reply views Thread by MrMoon | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.