3

I'm looking for a way to get a control at where my cursor is pointing to, is there any way to do this in C#?

123
  • 5,666
  • 7
  • 25
  • 30

1 Answers1

3

Check out the GetChildAtPoint method. Combine it with a handler for the MouseMove or MouseHover event and you have your control under the cursor.

Paul Sasik
  • 79,492
  • 20
  • 149
  • 189