Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
GetChildAtPoint Method
Collapse the table of content
Expand the table of content

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
[C#]
public Control GetChildAtPoint(
 Point pt
);
[C++]
public: Control* GetChildAtPoint(
 Point pt
);
[JScript]
public function GetChildAtPoint(
   pt : Point
) : Control;

Parameters

pt
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.

Remarks

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

Requirements

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

Show:
© 2015 Microsoft