Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Windows 窗体 我在布局面板上使用 DragOver 事件,并且 DragEventArgs 返回鼠标相对于屏幕的 X/Y 坐标。我知道有一个函数可以将它转换为鼠标在控件上的位置,但我很难找到它。
尝试Control.PointToClient和Control.PointToScreen。