How to get mouse position over a certain control

后端 未结 1 1799
温柔的废话
温柔的废话 2020-12-19 06:20

Windows Form
I\'m using the DragOver event on a layoutpanel and the DragEventArgs returns the X/Y coordinates of the mouse in relation to the screen. I know there is a f

相关标签:
1条回答
  • 2020-12-19 06:42

    Try Control.PointToClient and Control.PointToScreen.

    0 讨论(0)
提交回复
热议问题