我怎样获取鼠标的本地位置?
我希望窗口的左上角是点(0,0),而不是整个屏幕。
Cursor.Position 类。
Cursor.Position
如果您想将全局鼠标位置映射到窗口相对位置,则使用:
YourFormControl.PointToClient(Cursor.Position)