Called in response to the left mouse button being pressed and held while over the component.
Protected Overrides Sub OnMouseDragBegin ( _ x As Integer, _ y As Integer _ )
protected override void OnMouseDragBegin( int x, int y )
protected: virtual void OnMouseDragBegin( int x, int y ) override
abstract OnMouseDragBegin : x:int * y:int -> unit override OnMouseDragBegin : x:int * y:int -> unit
This method is called in response to the left mouse button being pressed on a component. The designer overrides the base form of this method to provide a "lasso" selection mechanism for components within the control.
You can pass a point in screen coordinates to the PointToClient method of the Control class to obtain the coordinates of the point relative to the upper-left corner of the control.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2