Retrieves the child control that is located at the specified coordinates.
Syntax
| Visual Basic (Declaration) | |
|---|
Public Overloads Function GetChildAtPoint( _
ByVal pt As System.Drawing.Point _
) As System.Windows.Forms.Control |
| C# | |
|---|
public System.Windows.Forms.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.
Return Value
A
System.Windows.Forms.Control that represents the control that is located at the specified point.
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also