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;
- 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.
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:
- UIPermission for all windows to call this method if the control returned is not a child of the control. Associated enumeration: UIPermissionWindow.AllWindows