Export (0) Print
Expand All

ParentControlDesigner.OnMouseDragBegin Method

Called in response to the left mouse button being pressed and held while over the component.

Namespace: System.Windows.Forms.Design
Assembly: System.Design (in system.design.dll)

protected override void OnMouseDragBegin (
	int x,
	int y
)
protected void OnMouseDragBegin (
	int x, 
	int y
)
protected override function OnMouseDragBegin (
	x : int, 
	y : int
)

Parameters

x

The x-coordinate of the mouse in screen coordinates.

y

The y-coordinate of the mouse in screen coordinates.

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.

NoteNote

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.

  • Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see .

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0
Show:
© 2015 Microsoft