I have form with few buttons and I want to know what button is under cursor now.
P.S. Maybe it's duplicate, but I can't find answer to this question.
Have a look at GetChildAtPoint
. You will have to do some extra work if the controls are contained in a container, see Control.PointToClient
.