How do i know the cursor postion in a form?
Cursor Position
Collapse
X
-
Originally posted by vdraceilHow do i know the cursor postion in a form?
People tend to use the word "cursor" for a lot of different things. -
In a mouse event such as Mousedown, up or move, X returns the arrow's distance from the left, and Y it's distance from the top.
HTH.Comment
-
Originally posted by vdraceilHow do i know the cursor postion in a form?
In VB.NET, Control.MousePo sition gives you the screen position and you can subtract the form's Left & Top property. And, as others have said, in the form click event, you can cast EventArgs into MouseEventArgs and use the X & Y properties. HTH --SamComment
Comment