/// <summary> /// Retrieves the control that contains the specified point. /// </summary> /// /// <remarks> /// <para> /// Returns null if no control exists at the given point, or if the point /// is within a hidden or disabled control. /// </para> /// /// <para> /// </para> /// /// <para> /// The point is given in screen coordinates. /// </para> /// /// <para> /// See also: User32Api.WindowFromPoint(Point). /// </para> /// </remarks> public static Control ControlFromPoint(System.Drawing.Point point) { return(Control.FromChildHandle(User32Api.WindowFromPoint(point))); }