This documentation is archived and is not being maintained.

Control.GetChildAtPoint Method

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

[Visual Basic]
Public Function GetChildAtPoint( _
   ByVal pt As Point _
) As Control
public Control GetChildAtPoint(
 Point pt
public: Control* GetChildAtPoint(
 Point pt
public function GetChildAtPoint(
   pt : Point
) : Control;


A 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 Control that represents the control that is located at the specified point.


If there is no child control at the specified point, the GetChildAtPoint method returns a null reference (Nothing in Visual Basic).


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

Control Class | Control Members | System.Windows.Forms Namespace | Parent | Control.ControlCollection