ACAT.Lib.Core.Utility.Windows.FindControlAtCursor C# (CSharp) Метод

FindControlAtCursor() публичный статический Метод

Finds the control under the cursor
public static FindControlAtCursor ( Form form ) : Control
form System.Windows.Forms.Form form under the cursor
Результат System.Windows.Forms.Control
        public static Control FindControlAtCursor(Form form)
        {
            Point pos = Cursor.Position;
            if (form.Bounds.Contains(pos))
            {
                return FindControlAtPoint(form, form.PointToClient(Cursor.Position));
            }

            return null;
        }