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,386
  • 6
  • 24
  • 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
  • 76,452
  • 19
  • 147
  • 184