System.Windows.Forms.Control.GetChildAtPoint Method

Retrieves the child control that is located at the specified coordinates.

Syntax

public Control GetChildAtPoint (System.Drawing.Point pt)

Parameters

pt
A System.Drawing.Point that contains the coordinates where you want to look for a control. Coordinates are expressed relative to the upper-left corner of the control's client area.

Returns

A System.Windows.Forms.Control that represents the control that is located at the specified point.

Remarks

If there is no child control at the specified point, the Control.GetChildAtPoint(System.Drawing.Point) method returns null.

Requirements

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