MouseEventArgs::X Property
.NET Framework (current version)
Gets the x-coordinate of the mouse during the generating mouse event.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
The mouse coordinates vary based on the event being raised. For example, when the Control::MouseMove event is handled, the mouse coordinate values are relative to the coordinates of the control that raised the event. Some events related to drag-and-drop operations have associated mouse-coordinate values that are relative to the form origin or the screen origin.
.NET Framework
Available since 1.1
Available since 1.1
Show: