System.Windows.Forms.Control.MousePosition Property

Gets the position of the mouse cursor in screen coordinates.

Syntax

public static System.Drawing.Point MousePosition { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The Control.MousePosition property returns a System.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.

The Control.MousePosition property is identical to the Cursor.Position property.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0