Gets the position of the mouse cursor in screen coordinates.
Returns
A xtd::drawing::point that contains the coordinates of the mouse cursor relative to the upper-left corner of the screen.
Remarks
The xtd::forms::control::mouse_position property returns a xtd::drawing::point that represents the mouse cursor position at the time the property was referenced. The coordinates indicate the position on the screen, not relative to the control, and are returned regardless of whether the cursor is positioned over the control. The coordinates of the upper-left corner of the screen are 0,0.