Retrieves the child control that is located at the specified coordinates, specifying whether to ignore child controls of a certain type.
Syntax
| Visual Basic (Declaration) | |
|---|
Public Overloads Function GetChildAtPoint( _
ByVal pt As System.Drawing.Point, _
ByVal skipValue As System.Windows.Forms.GetChildAtPointSkip _
) As System.Windows.Forms.Control |
| C# | |
|---|
public System.Windows.Forms.Control GetChildAtPoint(
System.Drawing.Point pt,
System.Windows.Forms.GetChildAtPointSkip skipValue
) |
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.
- skipValue
- One of the values of System.Windows.Forms.GetChildAtPointSkip, determining whether to ignore child controls of a certain type.
Return Value
The child
System.Windows.Forms.Control at the specified coordinates.
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