How to get control under mouse cursor? [duplicate]

Have a look at GetChildAtPoint. You will have to do some extra work if the controls are contained in a container, see Control.PointToClient.

Leave a Comment